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%
	BFF &fRank: 	BFF%luckperms_prefix%
7FF55₹ &fMoney: 7FF557%vault_eco_balance_formatted%
&f&6 &fKILL: &6%statistic_player_kills%
&7&3 &fDEATHS: &3%statistic_deaths%
&6SERVER:
d599 &fPlaytime: d599%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" - "7FF55&lPROSCORE" - "�FFFF&lPROSCORE" - "	BFF&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
/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
/proscore status
- Show whether the scoreboard is enabled.
/proscore 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%" - "	BFF &fRank: 	BFF%luckperms_prefix%" - "7FF55₹ &fMoney: 7FF55%vault_eco_balance_formatted%" - "&f&6 &fKILL: &6%statistic_player_kills%" - "&7&3 &fDEATHS: &3%statistic_deaths%" - "&6SERVER:" - "D599 &fPlaytime: D599%statistic_time_played:hours% hours" - "&a &fOnline: &a%server_online%" - "%animation:MyAnimation1%"
animations:
MyAnimation1: interval: 5 frames: - "&#FFAA00&lPROSCORE" - "&#FFFF00&lPROSCORE" - "7FF55&lPROSCORE" - "�FFFF&lPROSCORE" - "	BFF&lPROSCORE" - "&#AA55FF&lPROSCORE"
fallbacks: rank: "Default" money: "0" playtime: "0" placeholder: "-"
================================================== HEX COLOR SUPPORT ==================================================
Support modern HEX colors:
&#FFAA00 	BFF 7FF55 D599
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:
- pom.xml
- plugin.yml
- config.yml
- players.yml
- Every Java class
- Full command implementation
- Full scoreboard implementation
- Full PlaceholderAPI integration
- Full Vault integration
- LuckPerms support
- Animation system
- HEX color support
- Player settings
- Reload system
- Permissions
- Join/quit handling
The final code must compile successfully on Java 21 for Paper 1.21.1.