Act as a senior Minecraft Java plugin developer specializing in premium Paper plugins, advanced inventory GUIs, professional server UX, and production-ready code.
Develop a complete, functional, premium-quality Minecraft plugin named ZeroHomes, with the output JAR named exactly:
ZeroHomes.jar
The plugin must implement a professional team management system branded in-game as ZEROTEAMS, inspired by the GUI layout and hover tooltips in my provided Minecraft screenshots.
- Platform: Paper.
- Minecraft version: 1.21-21.2
- Java: Use the Java version supported by the target Paper server.
- Language: Java.
- Build system: Maven.
- Main plugin class: com.zerostudios.zerohomes.ZeroHomes
- Plugin name: ZeroHomes
- Output artifact: ZeroHomes.jar
- Include a valid plugin.yml, config.yml, messages configuration, and all required source files.
- Use Adventure/MiniMessage or reliable legacy color-code handling where appropriate.
- Use persistent data containers or another reliable method to identify custom GUI items.
- Do not depend on PlaceholderAPI or other external plugins unless strictly necessary.
- No pseudocode, missing classes, unfinished methods, or nonfunctional menu buttons.
The plugin must compile successfully and run on Paper 1.21.11.
When a player executes /team, play a subtle, pleasant menu-opening sound and open the main inventory GUI.
The GUI must closely follow my provided screenshots:
- Inventory title: Teams | Main Menu
- Use a chest-style inventory with a clean, organized layout.
- Keep the vanilla Minecraft inventory appearance.
- Use carefully selected items, consistent colors, professional names, and informative descriptions.
- Fill unused slots with neutral gray stained-glass panes.
- Never overcrowd the GUI.
- Make the interface feel like a premium Minecraft network plugin.
The GUI must support these options:
1. Create Team
2. Team Invitations
3. Team Members
4. Team Settings
5. Team Leaderboard
6. Leave Team
7. Disable Teams
8. Exit
Use appropriate Minecraft items for every option, such as a chest for team creation, a bed for team management where appropriate, a book for the leaderboard, and a red-colored exit item.
Choose a sensible slot layout that resembles the supplied screenshots. Put the Exit button in the last inventory slot, using the requested RED_HARNESS item if supported by the target Minecraft API. Otherwise, use a valid red item with equivalent visual meaning and document the fallback.
Every interactive GUI item must have a polished display name and useful lore.
When the player moves the mouse cursor over an item, Minecraft should display its normal item tooltip with clean, readable information.
Examples:
Create Team
- Display name: &a&lCREATE TEAM
- Description
- &7Create your own team and
- &7build your reputation.
- &e➜ CLICK to Continue
Team Invitations
- Display name: &9&lTEAM INVITES
- Description
- &7View incoming team invitations
- &7and manage your requests.
- &e➜ CLICK to View
Team Settings
- Display name: &6&lTEAM SETTINGS
- Description
- &7Manage your team preferences
- &7and member permissions.
- &e➜ CLICK to Configure
Team Leaderboard
- Display name: &b&lTEAM LEADERBOARD
- Description
- &7Discover the top teams
- &7on the server.
- &e➜ CLICK to View
Disable Teams
- Display name: &c&lDISABLE TEAMS
- Description
- &7Manage whether teams are enabled
- &7on the server.
- &e➜ CLICK to Manage
Make all GUI titles, item names, lore, and sounds configurable.
Do not display empty descriptions, raw internal identifiers, or broken placeholders.
When the player clicks Create Team, close the GUI and play a pleasant click sound.
Send this exact message:
&b&lZEROTEAMS &7✔ &fEnter your teams name
Then enter a team-name input state.
The player should type the team name in chat. Validate the input and prevent:
- Empty team names.
- Names longer than the configured maximum.
- Duplicate team names, ignoring capitalization.
- Illegal characters.
- Names that violate configured restrictions.
- Players creating multiple teams.
- Players creating teams when the system is disabled.
Provide /team cancel to cancel the creation process.
After a valid team is created:
1. Store the team and its owner.
2. Add the creator as the team leader.
3. Play a satisfying success sound.
4. Send this action-bar message:
&a[★] &fTeam created successfully
5. Send a professional confirmation message in chat.
6. Reopen the main team GUI or display a clear next-step option.
The creation state must expire after a configurable timeout. Do not accidentally treat ordinary chat messages as team names.
IMPORTANT: Correct spelling and grammar in internal messages except where the exact requested text must be preserved. Use Team created successfully for the success message.
Implement a working team invitation system.
Required commands:
- /team invite
- /team accept
- /team deny
- /team leave
- /team kick
- /team info [team]
Requirements:
- Only authorized team members can invite players, according to permissions.
- Prevent invitations to offline players unless offline invitations are explicitly supported.
- Prevent players from joining multiple teams.
- Prevent duplicate invitations.
- Add an invitation expiry time.
- Notify both players when an invitation is sent, accepted, denied, or expires.
- Display pending invitations in the Team Invitations GUI.
- Allow players to accept or deny invitations using GUI buttons.
- Enforce configurable team-size limits.
- Protect against self-invites and invalid team names.
Create a fully functional Team Settings menu.
Include options for:
- Change team description.
- Change team display name, subject to validation.
- Manage invitations.
- Manage member permissions.
- View the current member list.
- Transfer leadership to another member.
- Delete the team with a confirmation menu.
Only the team leader or explicitly authorized members can change settings.
Require confirmation before deleting a team or transferring leadership.
Use appropriate click sounds and success or failure messages.
Implement a functional leaderboard GUI displaying the highest-ranked teams.
Display:
- Team rank.
- Team name.
- Team leader.
- Number of members.
- Team points or another configurable ranking metric.
Use gold, silver, and bronze styling for the top three teams.
Provide pagination if more teams exist than fit on one inventory page.
Leaderboard data must be calculated from actual stored team data. Never use fake team names, fabricated statistics, or placeholder ranking values.
Create a working Disable Teams feature with appropriate permissions.
When an authorized player clicks Disable Teams:
- Play a clear toggle sound.
- Open a confirmation menu.
- Display the current system status.
- Provide Enable and Disable buttons.
- Require confirmation before disabling the system.
When teams are disabled, block team creation, invitations, and joining operations. Preserve existing team data unless the administrator explicitly chooses to delete it.
Display an action-bar notification when the status changes.
Provide an administrative command:
/team admin enable
/team admin disable
/team admin reload
/team admin delete
Protect administrative commands with the permission zeroteams.admin.
Place the Exit button in the final slot of the main GUI.
Use a red item, preferably RED_HARNESS if valid for the target API.
Display name:
&c&lEXIT MENU
Lore:
&7Close the team menu.
&e➜ CLICK to Exit
When clicked:
- Play a subtle inventory-close sound.
- Close the GUI.
- Do not execute any unintended action.
Use appropriate Minecraft sounds for:
- Opening the main menu.
- Clicking GUI options.
- Creating a team.
- Sending an invitation.
- Accepting or denying an invitation.
- Leaving a team.
- Changing team settings.
- Enabling or disabling teams.
- Successful or failed operations.
- Closing the GUI.
Use sounds sparingly and professionally. Avoid excessively loud, repetitive, or irritating sound effects.
Optional: Add short, lightweight GUI feedback effects where supported. Never sacrifice server performance for animations.
Implement clear permission nodes:
- zerohomes.use
- zeroteams.use
- zeroteams.create
- zeroteams.invite
- zeroteams.manage
- zeroteams.leaderboard
- zeroteams.admin
Define sensible defaults in plugin.yml.
Ensure every command and GUI action checks the correct permissions server-side. Hiding a button alone is not sufficient authorization.
Create professional configuration files.
config.yml should include:
- GUI titles and layouts.
- Menu item names and lore.
- Sound settings.
- Team-name minimum and maximum lengths.
- Maximum team members.
- Invitation expiry.
- Team creation timeout.
- Team system enabled/disabled status.
- Leaderboard settings.
- Permission-related settings.
- Debug mode.
messages.yml should include all chat messages, action-bar messages, errors, success notifications, and prefixes.
Support standard Minecraft color codes and hex colors where appropriate.
Provide comments explaining important configuration options.
Implement reliable persistent storage using SQLite or another suitable storage system.
Persist:
- Team UUID and unique name.
- Team leader.
- Team members and their roles.
- Team description.
- Creation timestamp.
- Team points.
- Invitations and expiry information where appropriate.
- System enabled/disabled status.
Requirements:
- Save data safely across server restarts.
- Avoid losing data when the plugin disables.
- Use UUIDs rather than player names as permanent player identifiers.
- Handle malformed or missing data safely.
- Avoid blocking the main server thread with expensive database operations.
- Include a reliable schema and migration strategy if the data format changes.
This is a production-quality server plugin, not a demonstration.
Implement proper event handling for:
- Inventory clicks.
- Inventory drags.
- Inventory closing.
- Player quit.
- Chat input.
- Plugin disable.
Prevent players from taking, moving, or swapping custom GUI items.
Prevent shift-click, number-key swaps, double-click collection, and drag exploits.
Use a reliable menu identification system instead of checking inventory titles alone.
Cancel invalid actions and validate permissions and team state again when a button is clicked.
Prevent duplicate event execution, memory leaks, and unnecessary repeating tasks.
Deliver the complete Maven source project, including:
- pom.xml
- src/main/java/...
- src/main/resources/plugin.yml
- src/main/resources/config.yml
- src/main/resources/messages.yml
- Database initialization and data-access classes.
- GUI manager.
- Team manager.
- Invitation manager.
- Command handlers.
- Event listeners.
- Permission checks.
- README with installation and command documentation.
The final compiled JAR must be named exactly:
ZeroHomes.jar
The JAR must be placed in the Maven target directory and be ready to install in the Paper server's plugins folder.
Before declaring the plugin complete:
1. Compile the entire project.
2. Fix all compilation errors.
3. Verify that every command works.
4. Test all GUI buttons.
5. Test inventory interaction security.
6. Test team creation, invitations, leaving, and deletion.
7. Test team data persistence after a server restart.
8. Test permissions with normal players and administrators.
9. Test that disabling teams blocks restricted operations.
10. Verify compatibility with Paper 1.21.11.
Do not claim a feature works unless it has been implemented.
Final deliverable: Provide the compiled ZeroHomes.jar as the primary output, with the complete Java source project available separately for future maintenance.
The final product should feel like a polished premium Minecraft network plugin: clean, responsive, secure, configurable, attractive, and enjoyable to use.