Chandresh Chandresh

Create a complete, production-ready Minecraft scoreboard plugin named "PROSCORE" for Minecraft 1.21.1.

SERVER REQUIREMENTS

  • Minecraft: 1.21.1
  • Server software: Paper
  • Java: 21
  • Plugin name: PROSCORE
  • Main package: me.promine7234.proscore
  • Main class: PROSCORE
  • Build system: Maven
  • Paper API compatible with Minecraft 1.21.1
  • Use modern Paper API where possible.
  • The plugin must compile without errors.

================================================== CORE FEATURE — SCOREBOARD ==================================================

Create a fully configurable sidebar scoreboard.

The scoreboard must support:

  • PlaceholderAPI
  • LuckPerms placeholders
  • Vault economy placeholders
  • Statistic placeholders
  • Server online player count
  • Animated scoreboard lines
  • HEX colors
  • Legacy Minecraft color codes
  • Placeholder refresh/update
  • Enable/disable scoreboard
  • Configuration reload
  • Per-player scoreboard

The scoreboard title and lines must be configurable in config.yml.

Use PlaceholderAPI properly.

The plugin MUST NOT simply display placeholders as text.

It must parse PlaceholderAPI placeholders using PlaceholderAPI's API.

================================================== REQUIRED SCOREBOARD ==================================================

The default scoreboard must be:

%animation:MyAnimation1%

&#FFOAA4¢ &r&fPlayer: &#FFOAA4%player_name%

&#009BFF &fRank: &#009BFF%luckperms_prefix%

&#55FF55₹ &fMoney: &#55FF557%vault_eco_balance_formatted%

&f&6 &fKILL: &6%statistic_player_kills%

&7&3 &fDEATHS: &3%statistic_deaths%

&6SERVER:

&#05d599 &fPlaytime: &#05d599%statistic_time_played:hours% hours

&a &fOnline: &a%server_online%

%animation:MyAnimation1%

IMPORTANT:

  • Keep the above scoreboard design as the default.
  • Fix obvious formatting/placeholder mistakes where required while preserving the intended appearance.
  • The money line must correctly display the player's current Vault economy balance.
  • The rank line must correctly display the LuckPerms prefix.
  • Statistics must update correctly.
  • Online player count must update correctly.
  • Playtime must display hours correctly.
  • PlaceholderAPI placeholders must be refreshed automatically.

================================================== ANIMATION SYSTEM ==================================================

Support animated placeholders such as:

%animation:MyAnimation1%

Create a built-in animation system.

Example config:

animations:

MyAnimation1: interval: 5 frames: - "&#FFAA00&lPROSCORE" - "&#FFFF00&lPROSCORE" - "&#55FF55&lPROSCORE" - "&#00FFFF&lPROSCORE" - "&#009BFF&lPROSCORE" - "&#AA55FF&lPROSCORE"

The animation system must:

  • Support unlimited animations.
  • Support unlimited frames.
  • Allow configurable frame interval.
  • Support HEX colors.
  • Support legacy colors.
  • Work inside scoreboard titles and lines.
  • Replace %animation:AnimationName% with the current animation frame.
  • Update automatically without restarting the server.

================================================== PLACEHOLDERAPI ==================================================

PROSCORE must have PlaceholderAPI as a soft dependency or optional dependency.

If PlaceholderAPI is installed:

  • Automatically hook into PlaceholderAPI.
  • Parse all PlaceholderAPI placeholders.
  • Update placeholders periodically.

The plugin must support placeholders including:

%player_name% %luckperms_prefix% %vault_eco_balance_formatted% %statistic_player_kills% %statistic_deaths% %statistic_time_played:hours% %server_online%

Also allow users to add ANY other PlaceholderAPI placeholder in config.yml.

If PlaceholderAPI is missing:

  • Do not crash the server.
  • Show a clear console warning.
  • Continue running with placeholders left unchanged or safely handled.

================================================== LUCKPERMS SUPPORT ==================================================

Support:

%luckperms_prefix%

LuckPerms should be detected automatically.

If LuckPerms is not installed:

  • Do not crash.
  • Display a safe fallback such as "Default".

================================================== VAULT ECONOMY SUPPORT ==================================================

Support:

%vault_eco_balance_formatted%

Vault must be detected automatically.

The scoreboard must show the player's real current money.

Example:

₹125,500

The economy value must update automatically when the player's balance changes.

If Vault or an economy provider is unavailable:

  • Do not crash.
  • Display a configurable fallback.

================================================== COMMANDS ==================================================

Add:

/proscore /proscore reload /proscore on /proscore off /proscore toggle /proscore status /proscore version

Also support aliases:

/pscore /scoreboard

Command behavior:

/proscore

  • Show help.

/proscore reload

  • Reload config.yml.
  • Reload animations.
  • Apply changes without restarting.

/proscore on

  • Enable scoreboard for the player.

/proscore off

  • Disable scoreboard for the player.

/proscore toggle

  • Toggle scoreboard.

/proscore status

  • Show whether the scoreboard is enabled.

/proscore version

  • Show plugin version.

================================================== PERMISSIONS ==================================================

proscore.admin

  • Access to /proscore reload
  • Access to administrative commands.

proscore.use

  • Allows player to use scoreboard commands.

proscore.bypass

  • Allows bypassing scoreboard display if needed.

Use sensible permission defaults.

================================================== CONFIGURATION ==================================================

Create a complete config.yml.

Example:

enabled: true

update-interval: 20

scoreboard: title: "%animation:MyAnimation1%" lines: - "&#FF0AA4¢ &r&fPlayer: &#FF0AA4%player_name%" - "&#009BFF &fRank: &#009BFF%luckperms_prefix%" - "&#55FF55₹ &fMoney: &#55FF55%vault_eco_balance_formatted%" - "&f&6 &fKILL: &6%statistic_player_kills%" - "&7&3 &fDEATHS: &3%statistic_deaths%" - "&6SERVER:" - "&#05D599 &fPlaytime: &#05D599%statistic_time_played:hours% hours" - "&a &fOnline: &a%server_online%" - "%animation:MyAnimation1%"

animations:

MyAnimation1: interval: 5 frames: - "&#FFAA00&lPROSCORE" - "&#FFFF00&lPROSCORE" - "&#55FF55&lPROSCORE" - "&#00FFFF&lPROSCORE" - "&#009BFF&lPROSCORE" - "&#AA55FF&lPROSCORE"

fallbacks: rank: "Default" money: "0" playtime: "0" placeholder: "-"

================================================== HEX COLOR SUPPORT ==================================================

Support modern HEX colors:

&#FFAA00 &#009BFF &#55FF55 &#05D599

Also support:

&0-&9 &a-&f &l &n &o &r

Convert colors correctly before displaying scoreboard text.

================================================== SCOREBOARD UPDATE SYSTEM ==================================================

Create an efficient update system.

Requirements:

  • Do NOT create a new scoreboard every tick.
  • Do NOT cause unnecessary flickering.
  • Do NOT create excessive tasks.
  • Update only online players.
  • Use a configurable update interval.
  • Cache animation frames where appropriate.
  • Safely handle player join/quit.
  • Remove scoreboard data when a player quits.
  • Avoid memory leaks.
  • Avoid deprecated APIs where possible.

Default update interval:

20 ticks

Make it configurable.

================================================== JOIN / QUIT BEHAVIOR ==================================================

When a player joins:

  • Automatically display the scoreboard if enabled.

When a player quits:

  • Remove their scoreboard data and cached objects.

When a player uses:

/proscore off

Hide their scoreboard.

When they use:

/proscore on

Show it again.

================================================== PLAYER SETTINGS ==================================================

Allow individual scoreboard toggle state.

Store player preferences in:

players.yml

Example:

players:

UUID: scoreboard: true

Do not store player names as the primary identifier.

Use UUIDs.

================================================== FILES ==================================================

Generate:

pom.xml

src/main/java/me/promine7234/proscore/PROSCORE.java

src/main/java/me/promine7234/proscore/command/ProScoreCommand.java

src/main/java/me/promine7234/proscore/listener/PlayerListener.java

src/main/java/me/promine7234/proscore/manager/ScoreboardManager.java

src/main/java/me/promine7234/proscore/manager/AnimationManager.java

src/main/java/me/promine7234/proscore/manager/PlayerSettingsManager.java

src/main/java/me/promine7234/proscore/hook/PlaceholderAPIHook.java

src/main/java/me/promine7234/proscore/hook/VaultHook.java

src/main/java/me/promine7234/proscore/util/ColorUtil.java

src/main/java/me/promine7234/proscore/util/ConfigUtil.java

src/main/resources/plugin.yml

src/main/resources/config.yml

src/main/resources/players.yml

================================================== PLUGIN.YML ==================================================

Create a correct Paper 1.21.1 plugin.yml.

Include:

name: PROSCORE version: 1.0.0 main: me.promine7234.proscore.PROSCORE api-version: '1.21'

commands: proscore: aliases: - pscore - scoreboard

permissions: proscore.admin: default: op

proscore.use: default: true

proscore.bypass: default: false

Dependencies:

  • PlaceholderAPI should be optional/soft dependency.
  • Vault should be optional/soft dependency.
  • LuckPerms should be optional/soft dependency.

================================================== MAVEN ==================================================

Use Java 21.

Use Paper API for Minecraft 1.21.1.

Include dependencies for:

  • Paper API
  • PlaceholderAPI
  • Vault API

Make sure the Maven project can be compiled using:

mvn clean package

The final JAR must be generated inside:

target/PROSCORE-1.0.0.jar

================================================== ERROR HANDLING ==================================================

The plugin must:

  • Never crash because PlaceholderAPI is missing.
  • Never crash because Vault is missing.
  • Never crash because LuckPerms is missing.
  • Handle invalid animation names safely.
  • Handle missing config values safely.
  • Handle invalid HEX colors safely.
  • Log useful warnings to console.
  • Never spam the console every scoreboard update.

================================================== PERFORMANCE ==================================================

The plugin must be optimized for a real production server.

Avoid:

  • Creating unnecessary scoreboards.
  • Creating unnecessary Bukkit tasks.
  • Updating offline players.
  • Excessive PlaceholderAPI parsing.
  • Memory leaks.
  • Excessive console logging.

Use one efficient repeating task where possible.

================================================== COMPATIBILITY ==================================================

Target:

Minecraft 1.21.1 Paper 1.21.1 Java 21

The plugin should work alongside:

  • PlaceholderAPI
  • LuckPerms
  • Vault
  • EssentialsX
  • Economy plugins
  • Other scoreboard-related plugins as safely as possible.

================================================== FINAL OUTPUT ==================================================

Provide the COMPLETE Maven project.

Do not provide pseudocode.

Do not omit any Java class.

Do not use "// TODO" placeholders.

Every class must contain complete working code.

Include:

  1. pom.xml
  2. plugin.yml
  3. config.yml
  4. players.yml
  5. Every Java class
  6. Full command implementation
  7. Full scoreboard implementation
  8. Full PlaceholderAPI integration
  9. Full Vault integration
  10. LuckPerms support
  11. Animation system
  12. HEX color support
  13. Player settings
  14. Reload system
  15. Permissions
  16. Join/quit handling

The final code must compile successfully on Java 21 for Paper 1.21.1.

Kodari AI
KodariOct 7 at 4:12 pm 2
ProScore
ProScore is a comprehensive Minecraft scoreboard plugin for Paper servers. It provides a highly configurable sidebar scoreboard with support for PlaceholderAPI, LuckPerms, Vault economy, and game statistics. Features include animated scoreboard lines with HEX color support, per-player settings, and a robust command system. The plugin automatically detects and integrates with optional dependencies, ensuring stability. It offers efficient performance with configurable update intervals and safe handling of player join/quit events. Administrators can easily customize the scoreboard content and animations through a YAML configuration file.
  1. Create the Maven project and Paper plugin metadata for Java 21 / Paper 1.21.1.

  2. Implement scoreboard rendering, PlaceholderAPI/Vault/LuckPerms fallbacks, and synchronized animations.

  3. Add player preferences, commands, join/quit handling, and complete default configuration.

Created the complete PROSCORE Maven project with Paper 1.21.1 support, configurable animated scoreboards, PlaceholderAPI/Vault/LuckPerms integrations with fallbacks, per-player UUID preferences, commands, and join/quit handling. The configured JAR name is target/PROSCORE-1.0.0.jar.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
15 806
src/main/java/me/promine7234/proscore/PROSCORE.java
package me.promine7234.proscore;

import me.promine7234.proscore.command.ProScoreCommand;
import me.promine7234.proscore.hook.LuckPermsHook;
import me.promine7234.proscore.hook.PlaceholderAPIHook;
import me.promine7234.proscore.hook.VaultHook;
import me.promine7234.proscore.listener.PlayerListener;
import me.promine7234.proscore.manager.AnimationManager;
import me.promine7234.proscore.manager.PlayerSettingsManager;
import me.promine7234.proscore.manager.ScoreboardManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.util.Objects;

public final class PROSCORE extends JavaPlugin {
    private AnimationManager animationManager;
    private PlayerSettingsManager playerSettingsManager;
    private ScoreboardManager scoreboardManager;
    private PlaceholderAPIHook placeholderAPIHook;
    private VaultHook vaultHook;
    private LuckPermsHook luckPermsHook;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        if (!new File(getDataFolder(), "players.yml").exists()) {
            saveResource("players.yml", false);
        }

        playerSettingsManager = new PlayerSettingsManager(this);
        animationManager = new AnimationManager(this);

        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            placeholderAPIHook = new PlaceholderAPIHook();
            getLogger().info("Hooked into PlaceholderAPI.");
        } else {
            getLogger().warning("PlaceholderAPI is not installed; external placeholders will remain unchanged.");
        }

        if (Bukkit.getPluginManager().isPluginEnabled("Vault")) {
            vaultHook = new VaultHook(this);
        }
        if (vaultHook == null || !vaultHook.isAvailable()) {
            getLogger().warning("Vault economy is unavailable; the configured money fallback will be displayed.");
        }

        if (Bukkit.getPluginManager().isPluginEnabled("LuckPerms")) {
            try {
                luckPermsHook = new LuckPermsHook();
            } catch (IllegalStateException exception) {
                getLogger().warning("LuckPerms is enabled but its API is not ready; the configured rank fallback will be displayed.");
            }
        } else {
            getLogger().warning("LuckPerms is not installed; the configured rank fallback will be displayed.");
        }

        scoreboardManager = new ScoreboardManager(this, animationManager, playerSettingsManager,
                placeholderAPIHook, vaultHook, luckPermsHook);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(scoreboardManager), this);

        ProScoreCommand command = new ProScoreCommand(this, scoreboardManager, playerSettingsManager);
        Objects.requireNonNull(getCommand("proscore"), "proscore command missing from plugin.yml")
                .setExecutor(command);
        getCommand("proscore").setTabCompleter(command);

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            boolean animationChanged = animationManager.tick();
            scoreboardManager.tick(animationChanged);
        }, 1L, 1L);

        for (var player : Bukkit.getOnlinePlayers()) {
            scoreboardManager.updatePlayer(player);
        }
        getLogger().info("PROSCORE enabled.");
    }

    @Override
    public void onDisable() {
        if (scoreboardManager != null) {
            scoreboardManager.shutdown();
        }
    }

    public void reloadPlugin() {
        reloadConfig();
        animationManager.reload();
        if (vaultHook != null) {
            vaultHook.refresh();
        }
        scoreboardManager.reload();
    }
}