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
- Main Command
"/scoreboard set <name> <prefix>"
Example:
"/scoreboard set owner &#FB00D3&lOE69E9&lW�D1FF&lNC180&lE�EB000&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".
- 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>".
- 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.
- 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.
- 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.
- 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.
- 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.
- 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