Aarohi

Make a plugin if we do /rank create we can create. Custom rank and /rank colour (rank name) we can set the colour of the rank and by /rank give (player name) we can give players that rank with the colour and it will show on their name tag and with /rank permission (rank name)then every commands will show by that we can select the commands we want to give permission to the rank players ex- /rank permission (rank name) gamemode creative. And by /rank everyone (rank name) we can give everyone the same rank and new players will join they get that rank too for java 1.21.11 paper and the rank given to that player should be shown in the left of the player name tag and the rank should be outlined more format than the nametag and if a player send a message so the rank will show their too but rank should be more formatted and the message and player name will not transform into the colour as the rank does the player name and colour will be white and if a normal player send message even a ranked player the message should send like (rank name with its colour) (<player name with this bracket < white coloured) message also white coloured

Kodari AI
KodariSep 28 at 5:38 pm 1
RankMaster
A comprehensive rank management plugin for Paper 1.21.11. Create custom ranks with /rank create, set their colors with /rank colour, assign ranks to players via /rank give, and configure per-rank permissions through /rank permission. Grant ranks to all current and future players with /rank everyone. Ranks display prominently on nametags with colored, formatted prefixes and appear in chat messages with the rank colored while player names and messages remain white. Supports multiple ranks, permission nodes, and persistent storage.
  • Create the Paper 1.21.11 Gradle plugin scaffold and /rank admin command.

  • Persist custom ranks, colors, player assignments, rank command grants, and the everyone/new-player default.

  • Apply bold colored nametag prefixes and the requested white-name chat format.

Created RankCraft for Paper 1.21.11.

  • /rank create <name> creates a rank; /rank colour <rank> <color> supports named colors and hex.

  • /rank give <player> <rank> assigns a rank. /rank everyone <rank> applies it to current players and new joins.

  • /rank permission <rank> <command...> toggles a command grant; use /rank permission <rank> list to view grants. For example: /rank permission VIP gamemode creative.

  • Ranked nametags show a bold, colored [Rank] prefix, and chat uses (Rank) <Player> message with the player name and message in white. Unranked players use <Player> message.

  • Rank data is saved in plugins/RankCraft/ranks.yml.

Minecraft nametags don’t support true text outlines, so the rank is emphasized with bold text and brackets instead.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 662
src/main/java/com/kodari/rankcraft/RankPlugin.java
package com.kodari.rankcraft;

import java.util.Objects;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class RankPlugin extends JavaPlugin {
    private RankManager rankManager;

    @Override
    public void onEnable() {
        rankManager = new RankManager(this);
        getServer().getPluginManager().registerEvents(new RankListener(this), this);
        Objects.requireNonNull(getCommand("rank")).setExecutor(new RankCommand(this));

        for (Player player : getServer().getOnlinePlayers()) {
            rankManager.handleJoin(player);
        }
    }

    public RankManager getRankManager() {
        return rankManager;
    }
}