Criko Gamer

Create a complete Minecraft scoreboard plugin named HexaScoreboard for my Drexhost Minecraft server.

Server Details

  • Minecraft Version: 26.2
  • Java Version: 25
  • Server Software: Paper
  • Plugin Language: Java
  • Build System: Maven
  • Plugin Type: Standalone
  • Edition Support: Java Edition and Bedrock Edition via GeyserMC/Floodgate
  1. Main Command

"/scoreboard set <name> <prefix>"

Example:

"/scoreboard set owner &#FB00D3&lO&#7E69E9&lW&#00D1FF&lN&#07C180&lE&#0EB000&lR"

Requirements:

  • Create a scoreboard preset using the specified name and prefix.
  • Support "&#RRGGBB" hex colors, legacy Minecraft colors, bold, italic, and underline.
  • Allow spaces and color codes in prefixes.
  • Save presets permanently in "scoreboards.yml".
  1. Prevent Duplicate Names
  • Every scoreboard preset must have a unique name.
  • Names must be case-insensitive: "Owner" and "owner" are duplicates.
  • If a name already exists, do not create another preset.
  • Display: "&cA scoreboard with this name already exists!"
  • To change an existing prefix, use "/scoreboard edit <name> <new-prefix>".
  1. Commands
  • "/scoreboard set <name> <prefix>" — Create a preset.
  • "/scoreboard edit <name> <new-prefix>" — Edit an existing preset.
  • "/scoreboard delete <name>" — Delete a preset.
  • "/scoreboard list" — List all presets.
  • "/scoreboard info <name>" — View preset details.
  • "/scoreboard assign <player> <name>" — Assign a preset to a player.
  • "/scoreboard unassign <player>" — Remove a player's assigned preset.
  • "/scoreboard reload" — Reload configuration and presets.
  • "/scoreboard help" — Show command help.
  1. Actual Sidebar Display
  • Display the assigned scoreboard on the right side of the player's screen.
  • Use the preset prefix as the player's rank prefix where appropriate.
  • Support configurable sidebar titles and lines.
  • Support placeholders for player name, online players, server name, and ping.
  • Support PlaceholderAPI when installed.
  • Update dynamically without causing server lag.
  • Ensure scoreboard lines remain unique internally, even when their visible text is identical.
  • Ensure Java and Bedrock players can see the sidebar correctly through GeyserMC.
  1. Permissions
  • "hexascoreboard.admin" — Full administrative access.
  • "hexascoreboard.use" — Permission to use player-facing features.
  • Restrict preset creation, editing, deletion, assignment, and reload to authorized administrators.
  • Configure default permissions appropriately.
  1. Configuration and Files

Generate all required files:

  • "plugin.yml"
  • "config.yml"
  • "scoreboards.yml"
  • Complete Java source code
  • "pom.xml"
  • "README.md"

Handle missing files, invalid commands, invalid players, duplicate names, and configuration errors safely.

  1. Compatibility Requirements
  • Target Minecraft 26.2.
  • Target Java 25.
  • Target a Paper server compatible with Minecraft 26.2.
  • Verify the correct Paper API version and Maven dependencies before building.
  • Do not use Minecraft 1.21.6-only dependencies or outdated APIs.
  • Use supported APIs for the target server version.
  • Do not claim compatibility unless the project compiles successfully against the correct API.
  1. Final Deliverable

Build a valid, ready-to-install "HexaScoreboard.jar" for my server. Do not provide only pseudocode or incomplete source files.

Test the Maven build, verify the plugin metadata, and provide the compiled JAR as a downloadable file if the environment supports compilation. Otherwise, provide the complete source project and exact build instructions.

Plugin name: HexaScoreboard Main command: "/scoreboard" Minecraft: 26.2 Java: 25

Kodari AI
KodariOct 16 at 1:58 pm 3
HexaScoreboard
HexaScoreboard is a comprehensive scoreboard management plugin for Paper servers running Minecraft 26.2 with Java 25. It provides a full command suite (/scoreboard) for creating, editing, deleting, listing, and assigning named scoreboard presets with rich color formatting including hex codes, legacy colors, bold, italic, and underline. Presets persist in scoreboards.yml with case-insensitive unique names. The plugin displays dynamic sidebars on the right side of the screen with configurable titles and lines, supporting placeholders for player name, online players, server name, and ping, plus PlaceholderAPI integration. It handles both Java and Bedrock players through GeyserMC, ensures unique internal line identifiers, updates efficiently without lag, and includes proper permission handling with hexascoreboard.admin and hexascoreboard.use roles.
  • Confirm the published Paper API coordinate for Minecraft 26.2.

  • Create the Maven project, plugin metadata, default configuration, and persistent preset file.

  • Implement commands, case-insensitive preset management, per-player sidebars, placeholders, and safe reload behavior.

  • Add installation/build guidance without claiming an unverified compiled JAR.

Created the complete HexaScoreboard Maven source project, including the commands, persistent presets and assignments, configurable sidebar, color-code handling, optional PlaceholderAPI integration, metadata, and README.

The Paper Maven metadata lists io.papermc.paper:paper-api:26.2.build.134-stable, which is pinned in pom.xml, with Java 25 configured. The project was not compiled here, so I can’t claim a successful build or provide a verified JAR. The source files are ready in the project.

To get the JAR in Kodari: click Compile (on phone: ⋮ → Compile Project), click Compile in the window, then download the successful build. The output is named HexaScoreboard.jar.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
README.md
Code
9 907
src/main/java/com/drexhost/hexascoreboard/HexaScoreboardPlugin.java
package com.drexhost.hexascoreboard;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class HexaScoreboardPlugin extends JavaPlugin {
    private HexaScoreboardManager scoreboardManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        scoreboardManager = new HexaScoreboardManager(this);

        PluginCommand command = getCommand("scoreboard");
        if (command == null) {
            getLogger().severe("The scoreboard command is missing from plugin.yml; disabling HexaScoreboard.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        ScoreboardCommand scoreboardCommand = new ScoreboardCommand(this, scoreboardManager);
        command.setExecutor(scoreboardCommand);
        command.setTabCompleter(scoreboardCommand);
        getServer().getPluginManager().registerEvents(scoreboardManager, this);
    }

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

    public HexaScoreboardManager getScoreboardManager() {
        return scoreboardManager;
    }
}