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 of paper 1.21.11 and the ranks given to players should be shown on left side of their name tag the rank should be shown in the tab of the smp in multiplayer when a player sen message the message send like - (rank name) (player name) (message)

Kodari AI
KodariSep 28 at 5:14 pm 1
RankMaster
A comprehensive rank management plugin for Paper 1.21.11. Create custom ranks with /rank create, set rank colors with /rank colour, assign ranks to players with /rank give, and grant specific command permissions per rank using /rank permission. Apply ranks globally with /rank everyone, including automatic assignment to new joiners. Ranks display on the left side of player nametags, appear in the multiplayer tab list, and format chat messages as (rank name) (player name) (message).
  1. Create the Paper 1.21.11 Gradle project and plugin metadata.

  2. Implement rank storage, name-tag/tab/chat formatting, and rank command permissions.

  3. Add /rank administration commands for creating, coloring, assigning, and configuring ranks.

Created the Paper 1.21.11 rank plugin with persistent custom ranks, colored name-tag and tab prefixes, formatted chat, command permissions, and a default rank for current and future players.

Examples: /rank create vip, /rank colour vip red, /rank give Steve vip, /rank permission vip gamemode creative, and /rank everyone vip.

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

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class KodariRanksPlugin extends JavaPlugin {
    private RankManager rankManager;

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

        for (Player player : Bukkit.getOnlinePlayers()) {
            rankManager.refreshPlayer(player);
        }
    }

    @Override
    public void onDisable() {
        if (rankManager != null) {
            rankManager.clearAttachments();
        }
    }
}