Rizzy Phizzy

Copy the whole rankedsmp plugin where there are 1 to 20 ranks with extra but in those there shall be added a command with ranked like /rankedsmp menu where other things works add a option to enable 1 to 30 ranks no restart or whatever also instead of showing unranked those who don't have show like this for unranked [Xbox emoji type icon just an x icon choose which will work] and done and same copy of ranked and disable option in 1to 30 and enable 1to 20 and having benefits and separated everything 20 hearts at 1 and extrainv 60 slots and exp booster etc what are at ranked plugin same to same everything working and

Kodari AI
KodariThu at 11:28 am 5
RankedSMPPro
RankedSMPPro is a comprehensive Minecraft plugin offering configurable rank systems from 1 to 30 levels. Administrators can enable or disable rank counts dynamically without server restarts via the /rankedsmp menu command. Players without ranks display a distinct [X] icon instead of "Unranked". Each rank provides progressive benefits including health hearts, extra inventory slots, and experience boosters. The plugin supports flexible rank configuration, allowing servers to switch between 20 or 30 rank setups seamlessly. All rank perks, commands, and menus are fully customizable through an intuitive interface, ensuring complete control over player progression and rewards.
  • Build ranks 1–20 with a live switch to 1–30, plus configurable rank benefits.

  • Add the rank menu, an X for unranked players, and a persistent 60-slot extra inventory.

  • Add PvP progression and admin commands. Exact parity with another RankedSMP plugin would require its feature list or source.

Built the RankedSMP-style plugin with PvP progression, an [X] unranked label, and a persistent 60-slot extra inventory.

  • /rankedsmp menu opens the rank menu.

  • Admins can switch between 20 and 30 ranks immediately with /rankedsmp mode 20 or 30.

  • Rank 1 has 20 hearts, boosted XP, and extra-inventory access by default.

The benefits are configurable, but I couldn’t verify exact parity with the original plugin. Share its link or feature list if you want it matched more closely.

Rizzy Phizzy

I mean bro copy the rankedsmp like available in websites etc modrinth https://modrinth.com/plugin/ranked-smp https://www.spigotmc.org/resources/rankedsmpx.134810/ copy these exact add all features of them check YouTube tab etc everything ranks shows on tab and chat everywhere on player head in these do very deep research and I just wanted to add 1to 30 features with you adding there features of 21 to 30 and can be disabled and enabled and when disabled 1-20 shall work

Kodari AI
KodariThu at 11:46 am 29

The two links describe different fan-made plugins. I found RankedSMPX’s public documentation and source; the other plugin’s published page lists its features, but not its source. I’ll match the documented rank mechanics first, preserve ranks 1–20 when 21–30 are switched off, and add the requested displays and menu.

Implemented the documented core mechanics: random unique ranks, rank stealing, configurable benefits, the Hierarchy Hammer, extra inventories, rank management, and TAB/PlaceholderAPI integration.

Use /rankedsmp mode 30 or /rankedsmp mode 20 to switch immediately. Ranks 21–30 become inactive in 20-rank mode and are retained for re-enabling. Unranked players display [X].

This is not yet an exact copy. Discord integration, database migration, SQLite/MySQL, and the newer Diamond Spear are not implemented. The dragon-egg locator uses a boss bar rather than the original locator bar. YouTube search results weren’t accessible, so I couldn’t verify features shown there.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 1,313
src/main/java/com/kodari/rankedsmp/RankedSMP.java
package com.kodari.rankedsmp;

import com.cryptomorin.xseries.XAttribute;
import com.cryptomorin.xseries.XMaterial;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.attribute.AttributeInstance;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityPotionEffectEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.inventory.ClickType;
import org.bukkit.event.inventory.InventoryAction;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.event.inventory.InventoryDragEvent;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerExpChangeEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.HashMap;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

public final class RankedSMP extends JavaPlugin implements Listener {
    private final Map<UUID, Integer> ranks = new ConcurrentHashMap<>();
    private final Map<UUID, ItemStack[]> extraItems = new HashMap<>();
    private File dataFile;
    private volatile int rankLimit;
    private final Set<UUID> applyingPotion = new HashSet<>();
    private final Set<UUID> blacklist = new HashSet<>();
    private final Map<UUID, List<String>> history = new HashMap<>();
    private TabBridge tabBridge;
    private DragonLocator dragonLocator;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        rankLimit = configuredLimit();
        dataFile = new File(getDataFolder(), "players.yml");
        loadData();
        getServer().getPluginManager().registerEvents(this, this);
        getServer().getPluginManager().registerEvents(new HammerListener(this), this);
        dragonLocator = new DragonLocator(this);
        getServer().getPluginManager().registerEvents(dragonLocator, this);
        Bukkit.getScheduler().runTaskTimer(this, dragonLocator::update, 20L, 20L);
        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new RankExpansion(this).register();
        }
        if (Bukkit.getPluginManager().isPluginEnabled("TAB") && getConfig().getBoolean("display.use-tab-plugin", true)) {
            tabBridge = new TabBridge(this);
            tabBridge.register();
        }
        for (Player player : Bukkit.getOnlinePlayers()) {
            applyBenefits(player);
        }
    }

    @Override
    public void onDisable() {
        for (Player player : Bukkit.getOnlinePlayers()) {
            InventoryHolder holder = player.getOpenInventory().getTopInventory().getHolder();
            if (holder instanceof ExtraHolder || holder instanceof MenuHolder) {
                player.closeInventory();
            }
        }
        saveData();
        if (dragonLocator != null) dragonLocator.close();
        if (tabBridge != null) tabBridge.close();
        Scoreboard board = Bukkit.getScoreboardManager().getMainScoreboard();
        for (Team team : new HashSet<>(board.getTeams())) {
            if (team.getName().startsWith("rsmp_")) team.unregister();
        }
    }

    private int configuredLimit() {
        return getConfig().getInt("rank-limit", 20) == 30 ? 30 : 20;
    }

    private void loadData() {
        YamlConfiguration data = YamlConfiguration.loadConfiguration(dataFile);
        for (String id : data.getStringList("blacklist")) {
            try { blacklist.add(UUID.fromString(id)); } catch (IllegalArgumentException ignored) { }
        }
        if (data.getConfigurationSection("players") == null) {
            return;
        }
        for (String key : data.getConfigurationSection("players").getKeys(false)) {
            try {
                UUID uuid = UUID.fromString(key);
                int rank = data.getInt("players." + key + ".rank", 0);
                if (rank >= 1 && rank <= 30) {
                    ranks.put(uuid, rank);
                }
                List<String> entries = data.getStringList("players." + key + ".history");
                if (!entries.isEmpty()) history.put(uuid, new ArrayList<>(entries));
                List<?> saved = data.getList("players." + key + ".extra");
                if (saved != null) {
                    ItemStack[] items = new ItemStack[60];
                    for (int i = 0; i < Math.min(items.length, saved.size()); i++) {
                        if (saved.get(i) instanceof ItemStack) {
                            items[i] = (ItemStack) saved.get(i);
                        }
                    }
                    extraItems.put(uuid, items);
                }
            } catch (IllegalArgumentException ex) {
                getLogger().warning("Ignoring invalid player UUID in players.yml: " + key);
            }
        }
        List<UUID> owners = new ArrayList<>(ranks.keySet());
        owners.sort(java.util.Comparator.comparing(UUID::toString));
        Set<Integer> occupied = new HashSet<>(ranks.values());
        Set<Integer> seen = new HashSet<>();
        for (UUID owner : owners) {
            int value = ranks.get(owner);
            if (seen.add(value)) continue;
            int replacement = 1;
            while (replacement <= rankLimit && occupied.contains(replacement)) replacement++;
            if (replacement <= rankLimit) {
                ranks.put(owner, replacement);
                occupied.add(replacement);
                seen.add(replacement);
                getLogger().warning("Duplicate rank #" + value + " for " + owner + "; moved to #" + replacement + ".");
            } else {
                ranks.remove(owner);
                getLogger().warning("Duplicate rank #" + value + " for " + owner + "; no vacant rank, so this player is unranked.");
            }
        }
    }

    private void saveData() {
        YamlConfiguration data = new YamlConfiguration();
        for (Map.Entry<UUID, Integer> entry : ranks.entrySet()) {
            data.set("players." + entry.getKey() + ".rank", entry.getValue());
        }
        for (Map.Entry<UUID, ItemStack[]> entry : extraItems.entrySet()) {
            data.set("players." + entry.getKey() + ".extra", Arrays.asList(entry.getValue()));
        }
        for (Map.Entry<UUID, List<String>> entry : history.entrySet()) data.set("players." + entry.getKey() + ".history", entry.getValue());
        List<String> blocked = new ArrayList<>();
        for (UUID id : blacklist) blocked.add(id.toString());
        data.set("blacklist", blocked);
        try {
            data.save(dataFile);
        } catch (IOException ex) {
            getLogger().severe("Could not save players.yml: " + ex.getMessage());
        }
    }

    private int rank(UUID uuid) {
        int saved = ranks.getOrDefault(uuid, 0);
        return saved > rankLimit ? 0 : saved;
    }

    private String rankLabel(UUID uuid) {
        int rank = rank(uuid);
        return rank == 0 ? ChatColor.DARK_GRAY + "[X]" : ChatColor.GOLD + "[#" + rank + "]";
    }

    int playerRank(UUID uuid) {
        return rank(uuid);
    }

    String playerLabel(UUID uuid) {
        return rankLabel(uuid);
    }

    double hearts(int rank) {
        double fallback = rank == 0 || rank > 20 ? 10.0 : 20.5 - rank * 0.5;
        return rank == 0 ? fallback : Math.max(1.0, getConfig().getDouble("ranks." + rank + ".hearts", fallback));
    }

    double xpMultiplier(int rank) {
        double fallback = rank == 0 ? 1.0 : rank <= 20 ? 3.1 - rank * 0.1 : 1.0 + (31 - rank) * 0.01;
        return rank == 0 ? fallback : Math.max(0.0, getConfig().getDouble("ranks." + rank + ".xp-multiplier", fallback));