π
pasted-code-1794743969047.txt
txt
256 lines
βΆ
# TASK: Build a Complete Production-Ready KashDonut Minecraft Plugin Ecosystem
You are a senior Minecraft Java plugin developer specializing in Paper API, Java 21, Maven, scoreboard systems, nametags, economy systems, and performance optimization.
I want you to build a complete, functional Minecraft plugin ecosystem for my server network under the Kashspade brand.
IMPORTANT: Do not give me tutorials, incomplete examples, pseudocode, placeholder methods, or partial implementations. Actually inspect the workspace, create and modify the required files, implement the features, compile the projects, fix errors, and verify the final output.
Do not artificially limit implementation scope. Implement all requested systems completely.
## 1. Technology Stack
- Minecraft: Paper 1.21.11
- Java: 21
- Maven
- Package namespace: net.kashspade
- Server type: Paper
- Database: SQLite initially, with architecture that can support MySQL later.
- Vault API integration.
- PlaceholderAPI integration.
- LuckPerms integration.
Use proper dependency management and avoid unnecessary dependencies.
## 2. Plugin Architecture
Create two independent plugins:
### KashCore
Responsible for:
- Player lifecycle management.
- Sidebar scoreboard.
- Nametag formatting.
- Player information display.
- Rank integration.
- Placeholder integration.
- Core configuration management.
- Administrative commands.
### KashEconomy
Responsible for:
- Player balances.
- Economy transactions.
- Vault Economy implementation.
- SQLite persistence.
- Economy commands.
- Transaction history.
- Administrative economy controls.
Keep both plugins modular and maintain clean separation of responsibilities.
## 3. KashCore β Sidebar Scoreboard
Create a fully functional sidebar scoreboard.
Design:
- Premium dark aesthetic.
- Blue, white, and gray color palette.
- Clean Minecraft formatting.
- No excessive animations.
- No flickering.
- No duplicate scoreboard entries.
Example:
KASHSPADE
ββββββββββββ
Player: %player_name%
Rank: %luckperms_primary_group_name%
Balance: $%vault_eco_balance_formatted%
Kills: %player_kills%
Deaths: %player_deaths%
ββββββββββββ
play.kashspade.net
Requirements:
- Update dynamically.
- Support PlaceholderAPI.
- Refresh configurable intervals.
- Update when player joins.
- Update after relevant player events.
- Handle scoreboard teams and entries correctly.
- Avoid creating unnecessary tasks.
- Prevent scoreboard conflicts.
## 4. KashCore β Nametag System
Create a complete nametag system.
Example:
[OWNER] Kashspade
Requirements:
- Rank prefixes from LuckPerms.
- Correct sorting by rank priority.
- Support different prefixes and suffixes.
- Update when permissions or ranks change.
- Display above players' heads.
- Work with multiple players.
- Avoid team collisions.
- Handle player join, quit, and world changes.
- No flickering.
## 5. KashCore β Player Lifecycle
Implement:
- PlayerJoinEvent.
- PlayerQuitEvent.
- PlayerRespawnEvent.
- PlayerChangedWorldEvent.
- PlayerDeathEvent.
Ensure all managers initialize and clean up correctly.
## 6. KashEconomy β Economy System
Implement a complete economy system.
Commands:
/balance
/bal
/pay
/eco give
/eco take
/eco set
/eco reset
/baltop
Requirements:
- Implement Vault Economy interface.
- SQLite database.
- Persistent balances after restarts.
- Safe transaction handling.
- Prevent negative balances.
- Prevent invalid amounts.
- Prevent paying yourself.
- Prevent paying offline players if unsupported.
- Configurable starting balance.
- Configurable currency symbol.
- Transaction history.
- Async database operations where appropriate.
- Never access Bukkit API unsafely from asynchronous tasks.
- Handle database failures gracefully.
## 7. Configuration
Create complete configuration files.
KashCore:
- config.yml
- scoreboard.yml
- messages.yml
KashEconomy:
- config.yml
- messages.yml
All messages, colors, formats, refresh intervals, and economy settings should be configurable.
## 8. Commands and Permissions
Implement proper tab completion and permission checks.
KashCore:
- /kashcore reload
- /kashcore info
KashEconomy:
- /balance
- /bal
- /pay
- /eco
- /baltop
Permissions:
- kashcore.admin
- kasheconomy.admin
- kasheconomy.pay
- kasheconomy.baltop
## 9. Performance and Code Quality
Requirements:
- Java 21 compatible.
- Paper 1.21.11 compatible.
- Proper object-oriented architecture.
- Clean package organization.
- No memory leaks.
- No unnecessary repeating tasks.
- Proper listener registration.
- Proper task cancellation.
- Safe database connection handling.
- No deprecated APIs when a supported alternative exists.
- No hardcoded messages when configuration is appropriate.
- No fake implementations.
## 10. Maven Build
Create correct Maven POM files.
Make sure:
- All dependencies resolve.
- Paper API uses provided scope.
- Vault API uses provided scope.
- PlaceholderAPI uses provided scope.
- Java release is 21.
- Both plugins can build independently or through a root multi-module Maven project.
Do not assume an existing parent POM unless you inspect it first.
## 11. Testing and Verification
After implementation:
1. Inspect the entire project structure.
2. Verify all main classes match plugin.yml.
3. Verify all commands are registered.
4. Verify all dependencies are declared.
5. Verify all resource files are included.
6. Run Maven clean package.
7. Fix every compilation error.
8. Inspect generated JAR contents.
9. Verify plugin.yml is inside each JAR.
10. Report any remaining runtime integration requirements.
## 12. Important Working Rules
- Inspect the existing workspace before changing anything.
- Preserve useful existing code.
- Do not overwrite unrelated projects.
- Do not create duplicate classes.
- Do not leave empty packages or TODO implementations.
- Do not stop after generating a few files.
- Do not claim something works unless it has been verified.
- If an API or dependency is incompatible, find a compatible solution.
- If a design decision is necessary, choose a sensible production-ready default and continue.
- Do not repeatedly ask me for approval for every file.
- Work through the entire implementation autonomously.
## FINAL DELIVERABLE
I expect:
- Complete KashCore source code.
- Complete KashEconomy source code.
- All Maven POM files.
- All plugin.yml files.
- All configuration files.
- Both successfully compiled JAR files.
- Final project structure.
- Build and installation instructions.
- A clear report of implemented and verified features.
Start by inspecting the existing project and continue until the implementation and build verification are complete.
The workspace was empty, so I created KashCore and KashEconomy and started their implementation in parallel. Theyβll integrate through Vault while remaining independent plugins.
STOP PLANNING. START IMPLEMENTING.
You have created the project and described the implementation, but I need actual generated source code and files.
Immediately:
- Create every required Java source file.
- Implement all requested functionality.
- Generate pom.xml, plugin.yml, config.yml, scoreboard.yml, and messages.yml where applicable.
- Put files in the correct Maven directory structure.
- Run
mvn clean package. - Fix all compilation errors.
- Verify that the final JAR exists in the target directory.
- Report the exact file paths and build results.
Do not respond with another plan, summary, or task description. Do not claim completion without actual source files and a successful build.
Continue working until the implementation is actually generated.
KashEconomyβs source and configuration files have been generated, and its workspace build succeeded. KashCore is still being implemented and has not yet been built.
I canβt yet confirm a target JAR or a successful mvn clean package; the workspace build is the available compilation check.
No files in this session