Jake florence Vesca

Create a Minecraft Paper 26.3 plugin called VEYLITH RANKS.

The plugin must create a working rank management GUI.

Rank colors

Use these rank names and colors:

  • OWNER – Dark Red
  • CO-OWNER – Gold
  • ADMIN – Red
  • MEDIA – Light Purple
  • HELPER – Aqua
  • MEMBER – Green

/rank command

  • Typing "/rank" opens the Rank Management GUI.
  • Only OP players can use "/rank".
  • Non-OP players must receive: "You don't have permission to use this command!"
  • The GUI must not open for unauthorized players.

Rank Management GUI

When an OP opens "/rank", display all six ranks as clickable items.

When the OP clicks a rank:

  1. Open another GUI showing all online and offline players who do not currently have that selected rank.
  2. Display each player's Minecraft head and username.
  3. Allow the OP to click the player they want to rank.
  4. Assign the selected rank to that player.
  5. Update their rank prefix and chat color immediately.
  6. Send a confirmation message to the OP and notify the selected player.

Additional requirements

  • Players must only have one rank at a time.
  • Changing someone's rank must replace their previous rank.
  • Rank data must save permanently, even after server restarts.
  • Use colored rank prefixes in chat and tab list.
  • Add a back button in every submenu.
  • Add a close button.
  • Prevent players from taking items out of the GUI.
  • Make all GUI buttons functional.

Technical requirements

  • Minecraft Paper 26.3.
  • Java plugin.
  • Generate a complete working ".jar" file.
  • Include plugin.yml and all required source files.
  • No fake functionality or placeholder buttons.
  • Plugin must load without errors.
Kodari AI
KodariMon at 6:48 am 1
VeylithRanks
VeylithRanks is a comprehensive rank management plugin for Paper servers featuring a two-tier GUI system. The /rank command opens a management interface showing six ranks (OWNER, CO-OWNER, ADMIN, MEDIA, HELPER, MEMBER) with distinct colors. Admins click a rank to view all players without that rank, displayed with their heads and usernames. Clicking a player assigns the rank, replacing any previous rank, and immediately updates chat prefixes and tab list colors. Rank data persists across restarts via YAML storage. The plugin includes functional back and close buttons, prevents item removal from GUIs, and enforces OP-only access with proper permission messages.
  • Add the Paper 26.3 plugin setup, /rank command, and persistent single-rank storage.

  • Build protected rank and player-selection GUIs with paging, back/close controls, and offline-player notifications.

  • Apply rank prefixes to tab/chat immediately and restore them on player join.

Implemented VEYLITH RANKS with the six colored ranks, an OP-only /rank command, protected rank/player menus with paging and back/close controls, and persistent rank data in ranks.yml. Online players are updated immediately; offline players receive their rank notification when they next join.

To get the .jar: click Compile in the top bar, click Compile in the window, then click Download when the build succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 589
src/main/java/com/veylith/ranks/VeylithRanksPlugin.java
package com.veylith.ranks;

import net.md_5.bungee.api.ChatColor;
import org.bukkit.command.PluginCommand;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class VeylithRanksPlugin extends JavaPlugin {
    private RankStorage rankStorage;
    private RankGUI rankGUI;

    @Override
    public void onEnable() {
        rankStorage = new RankStorage(this);
        rankStorage.load();

        rankGUI = new RankGUI(this);
        getServer().getPluginManager().registerEvents(rankGUI, this);
        getServer().getPluginManager().registerEvents(new RankPlayerListener(this), this);

        PluginCommand rankCommand = getCommand("rank");
        if (rankCommand == null) {
            getLogger().severe("The rank command is missing from plugin.yml.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        rankCommand.setExecutor(new RankCommand(this));
    }

    @Override
    public void onDisable() {
        if (rankStorage != null) {
            rankStorage.save();
        }
    }

    public RankStorage getRankStorage() {
        return rankStorage;
    }

    public RankGUI getRankGUI() {
        return rankGUI;
    }

    public void applyRank(Player player) {
        Rank rank = rankStorage.getRank(player.getUniqueId());
        String label = rank.getLegacyColor() + rank.getPrefix() + ChatColor.RESET + " ";
        player.setDisplayName(label + player.getName());
        player.setPlayerListName(label + player.getName());
    }
}