2n68

make me this plugin https://builtbybit.com/resources/donutbaltop.68237/

Kodari AI
KodariJul 29 at 11:58 pm 8
DonutBalanceTop
DonutBalanceTop displays a configurable live server wealth leaderboard using Vault economy balances. It creates an in-world floating hologram with ranked player names and formatted currency, refreshes automatically, and provides the /baltop command for chat rankings. Administrators can reload settings, manually refresh the display, move or remove the hologram, customize colors and line spacing, and control the number of displayed entries through a simple YAML configuration.

отс

DonutBalanceTop displays a configurable floating leaderboard of the richest players on a Minecraft server. It integrates with Vault economy providers, automatically discovers player balances, sorts entries from highest to lowest, and refreshes the display on a configurable schedule. Administrators can place, remove, reload, and customize the leaderboard using commands and configuration, including headers, entry formatting, footers, colors, spacing, ranking limits, and decimal precision.

I’ll create the Gradle project, Vault-powered balance leaderboard, floating ArmorStand display manager, admin commands, plugin metadata, and default configuration.

2n68

whats the cooanmnds

Kodari AI
KodariJul 30 at 6:35 pm 1

Commands:

  • /donutbaltop or /baltop — Shows the help menu.

  • /donutbaltop set — Places the leaderboard at your current location.

  • /donutbaltop set <x> <y> <z> — Places it at coordinates in your current world.

  • /donutbaltop set <world> <x> <y> <z> — Places it at coordinates in a specific world.

  • /donutbaltop remove — Removes the leaderboard.

  • /donutbaltop reload — Reloads the configuration and refreshes the leaderboard.

Permission required for management commands:

Plain Text
donutbaltop.admin

The command also has the alias /baltop. Thus, for example:

Plain Text
/baltop set
/baltop remove
/baltop reload
2n68

like this https://builtbybit.com/resources/donutbaltop.74847/

Kodari AI
KodariJul 30 at 6:36 pm 1

Plan:

  1. Compare the linked resource’s commands/features with the current plugin.

  2. Inspect the existing command and configuration files.

  3. Update the plugin to match the requested behavior and report the final commands.

I can match that resource, but BuiltByBit is blocking access to the page, so I can’t see its exact command list.

Send a screenshot of the Commands section or paste the text here, and I’ll update the plugin to match it exactly.

2n68
1 image attached
Kodari AI
KodariJul 30 at 6:37 pm 1

Updated the plugin aliases to match the screenshot:

Plain Text
/baltop
/moneytop
/balancetop
/wealthtop
/richest

They all run the same balance-top command.

2n68

also name is pkahbaltop

Kodari AI
KodariJul 30 at 6:38 pm 1

Renamed the plugin to pkahbaltop.

Primary command:

Plain Text
/pkahbaltop

Aliases:

Plain Text
/baltop
/moneytop
/balancetop
/wealthtop
/richest

Admin permission:

Plain Text
pkahbaltop.admin

Management commands:

Plain Text
/pkahbaltop set
/pkahbaltop remove
/pkahbaltop reload
2n68

i want /baltop to open a INVENTORY GUI like this

1 image attached
Kodari AI
KodariJul 30 at 6:51 pm 5

Plan:

  1. Replace /baltop’s current behavior with a paginated inventory leaderboard.

  2. Add clickable refresh, previous/next page, and player search controls matching the screenshot’s layout.

  3. Update registration/configuration while preserving the existing aliases and admin commands.

The existing command now opens a menu for players, and I’m adding the actual paginated GUI implementation with player entries, refresh, page navigation, and search.

Implemented /baltop as an inventory GUI:

  • Opens a 6-row “Most Money” menu.

  • Displays player heads with rank, balance, and worth.

  • Supports multiple pages.

  • Adds clickable previous, refresh, next, search, and close controls.

  • Search lets players type a username in chat and use cancel to clear it.

  • Existing aliases remain available: /moneytop, /balancetop, /wealthtop, /richest

  • Admin commands remain: /pkahbaltop set, /pkahbaltop remove, /pkahbaltop reload

Implemented /baltop as an inventory GUI matching the screenshot style.

Features:

  • 6-row “Most Money” GUI

  • Player heads for leaderboard entries

  • Displays:

    • Player name

    • Money balance

    • Rank

    • Worth

  • Pagination with Previous and Next

  • Refresh button

  • Search button for player names

  • Close button

  • Configurable GUI title and item materials

  • Existing commands still work:

Plain Text
/baltop
/moneytop
/balancetop
/wealthtop
/richest

Admin commands remain:

Plain Text
/pkahbaltop set
/pkahbaltop remove
/pkahbaltop reload

The GUI uses Vault economy balances and requires Vault plus an economy plugin.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
11 887
src/main/java/com/kodari/donutbalancetop/DonutBalanceTop.java
package com.kodari.donutbalancetop;

import net.milkbowl.vault.economy.Economy;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

public final class DonutBalanceTop extends JavaPlugin {
    private Economy economy;
    private LeaderboardManager leaderboardManager;
    private int refreshTask = -1;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        if (!setupEconomy()) {
            getLogger().warning("No Vault economy provider was found. The leaderboard will remain empty.");
        }

        leaderboardManager = new LeaderboardManager(this, economy);

        PluginCommand command = getCommand("pkahbaltop");
        if (command != null) {
            DonutBalanceTopCommand commandHandler = new DonutBalanceTopCommand(this);
            command.setExecutor(commandHandler);
            command.setTabCompleter(commandHandler);
        }

        getServer().getPluginManager().registerEvents(new BalTopGUIListener(this), this);

        leaderboardManager.reloadLocation();
        leaderboardManager.refresh();

        long refreshTicks = Math.max(10L, getConfig().getLong("settings.refresh-seconds", 60L)) * 20L;
        refreshTask = getServer().getScheduler().runTaskTimer(
                this,
                leaderboardManager::refresh,
                refreshTicks,
                refreshTicks
        ).getTaskId();
    }

    @Override
    public void onDisable() {
        if (refreshTask != -1) {
            getServer().getScheduler().cancelTask(refreshTask);
        }

        if (leaderboardManager != null) {
            leaderboardManager.clear();
        }
    }

    private boolean setupEconomy() {
        RegisteredServiceProvider<Economy> registration =
                getServer().getServicesManager().getRegistration(Economy.class);

        if (registration == null) {
            return false;
        }

        economy = registration.getProvider();
        return economy != null;
    }

    public Economy getEconomy() {
        return economy;
    }

    public LeaderboardManager getLeaderboardManager() {
        return leaderboardManager;
    }
}