hustensafttv

Create a menu plugin for my Server so People get linked to a Webside. /rank then a menu opens with a rang. When you Click on the diamond in the menu you will get linked to a webside. Admin command: /setrankmenu (link)

Kodari AI
KodariMay 14 at 4:01 pm 5,622 (v2)

I’ll create a rank menu plugin that opens a GUI with a clickable diamond that links players to a configurable website.

RankMenu
A simple yet effective menu plugin that displays a rank GUI when players use /rank. Features a clickable diamond item that redirects players to a configurable website for viewing or purchasing ranks. Includes admin commands to dynamically update the website link without server restarts. Perfect for servers wanting to direct players to external rank stores or information pages.

Done! I’ve created RankMenu - a simple plugin that displays a GUI with a clickable diamond that links players to your rank store website.

Features:

  • /rank - Opens a GUI with a diamond item (permission: rankmenu.use, default: true)

  • /setrankmenu <url> - Updates the website link (permission: rankmenu.admin, default: op)

  • Clicking the diamond sends a clickable chat message that opens the configured URL

  • All text, colors, and lore fully configurable in config.yml

How it works:

  1. Players use /rank to open the menu

  2. They click the diamond in the center

  3. A clickable message appears in chat

  4. Clicking the message opens the website in their browser

  5. Admins can change the URL anytime with /setrankmenu https://yoursite.com

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 280
src/main/java/com/rankmenu/RankMenu.java
package com.rankmenu;

import com.rankmenu.commands.RankCommand;
import com.rankmenu.commands.SetRankMenuCommand;
import com.rankmenu.listeners.MenuListener;
import org.bukkit.plugin.java.JavaPlugin;

public class RankMenu extends JavaPlugin {

    private static RankMenu instance;

    @Override
    public void onEnable() {
        instance = this;
        
        saveDefaultConfig();
        
        getCommand("rank").setExecutor(new RankCommand(this));
        getCommand("setrankmenu").setExecutor(new SetRankMenuCommand(this));
        
        getServer().getPluginManager().registerEvents(new MenuListener(this), this);
        
        getLogger().info("RankMenu has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("RankMenu has been disabled!");
    }

    public static RankMenu getInstance() {
        return instance;
    }
}