Build a Complete Bank Heists Plugin for RebornVanilla
You are an expert Minecraft plugin developer. Create a fully functional, production-ready Bank Heists plugin for my existing Minecraft Java server, RebornVanilla.
1. Server Environment
- Minecraft: Java Edition 1.21.11
- Server software: Paper
- Language: Java
- Build system: Gradle or Maven, whichever is most appropriate
- Economy: Integrate with Vault and the server's existing economy provider
- Permissions: Integrate with LuckPerms
- Plugin name:
RebornBankHeists - Main priority: Stability, exploit prevention, performance, and compatibility with my existing server.
This must be a real working plugin, not a prototype, mockup, or collection of code snippets.
2. Core Concept
Create a competitive, scheduled PvP event where players attempt to break into a virtual bank vault and steal a limited cash shipment while defenders attempt to protect it.
The event should feel like a major server-wide activity with announcements, countdowns, team selection, objectives, a vault, a timer, rewards, and a complete ending sequence.
The system must be configurable so I can adjust nearly everything without rebuilding the plugin.
3. Event Management
Create the following admin commands:
/heist create <name>— Create a new heist./heist setspawn <name>— Set the event spawn./heist setvault <name>— Set the vault location./heist setexit <name>— Set the escape location./heist setguardspawn <name>— Set the defender spawn./heist start <name>— Start an event manually./heist stop <name>— Safely stop an active event./heist schedule <name> <time>— Schedule an event./heist reload— Reload configuration safely./heist status— View the current event status./heist setreward <name> <amount>— Configure the cash reward./heist setduration <name> <seconds>— Set the event duration./heist setteams <name> <attackers> <defenders>— Configure team limits./heist wand <name>— Obtain a selection tool to define the bank's protected area.
Include tab completion, clear error messages, permission checks, and comprehensive command help.
4. Player Commands
Implement:
/heist join <name>— Join the event lobby./heist leave— Leave the event safely./heist info <name>— View event rules, reward, time, and player counts./heist stats [player]— View heist statistics./heist top— View the heist leaderboard./heist team— View your current team./heist map— Display the bank's objectives and relevant locations if supported.
Players must never be able to join an event after it has entered a locked phase.
5. Event Phases
Implement a robust state machine with these phases:
- WAITING — Event exists and is waiting for players.
- ANNOUNCEMENT — The server announces the upcoming event.
- COUNTDOWN — Players join, select teams, and prepare.
- LOCKED — Team selection closes and the teams are finalised.
- INFILTRATION — Attackers enter the bank and begin completing objectives.
- VAULT OPEN — The attackers have unlocked the vault.
- ESCAPE — Attackers must transport the stolen shipment to the extraction point.
- COMPLETED — A winner is determined and rewards are distributed.
- CANCELLED — The event is stopped or cancelled safely.
Prevent invalid phase transitions, duplicate events, duplicate rewards, and inconsistent team assignments.
6. Attacker Objectives
Create several configurable objectives that attackers must complete before accessing the vault.
Examples:
- Security Terminals: Interact with designated blocks in the correct sequence.
- Power Shutdown: Activate switches or levers at multiple locations.
- Keycard Collection: Find or obtain designated key items.
- Drill Objective: Stand near a configured vault block and complete a timed drilling process.
- Security Override: Hold a capture point for a specified duration.
Each objective must have:
- A configurable duration.
- Progress feedback.
- Boss bar or action bar updates.
- Sound and particle effects.
- Completion announcements.
- Defender interference mechanics.
- Anti-exploit validation.
Do not make objectives instantly completable by spam-clicking. Use server-side validation and controlled cooldowns.
7. Vault System
Create a secure vault that:
- Remains inaccessible until the required objectives are completed.
- Opens automatically when the conditions are satisfied.
- Contains a configurable virtual cash shipment.
- Tracks the shipment's status.
- Prevents unauthorised block breaking, container access, item duplication, or bypassing the vault.
- Cannot be opened through pistons, explosions, ender pearls, teleportation, or other unintended mechanics.
- Restores temporary blocks and changes when the event ends.
The bank must support a configurable protected region. Never let the event accidentally modify players' existing builds.
8. Stolen Shipment and Escape
Once the vault opens, attackers must retrieve the shipment and escape.
Implement a configurable shipment represented by a custom item, such as a named briefcase or cash bag.
Requirements:
- The shipment must have a unique identifier and be validated server-side.
- Only one valid shipment may exist per event.
- The carrier can be identified to both teams.
- The carrier must deliver the shipment to the configured extraction point.
- Defenders can stop the carrier through valid PvP mechanics.
- If the carrier dies, the shipment can be dropped or recovered according to configuration.
- The shipment must not be duplicated, stored in an ender chest, placed in a container, or carried into another world.
- If the shipment becomes lost or invalid, provide a safe recovery or cancellation procedure.
Make the escape phase meaningful: simply entering the vault should not automatically grant the attackers the reward.
9. Defender Mechanics
Defenders must have genuine ways to stop attackers.
Implement:
- A dedicated defender team.
- A configured defender spawn.
- Optional guards or NPCs if a suitable supported dependency is available.
- Notifications when an objective is activated.
- Notifications when the vault opens.
- Notifications when the shipment is picked up or dropped.
- Optional alarms, temporary barriers, and configurable security systems.
- A clear victory condition when the attackers run out of time or the shipment is secured by defenders.
Prevent defenders from unfairly camping the attacker spawn, and prevent attackers from remaining indefinitely in safe zones.
10. Team Balancing and Fair Play
- Support configurable minimum and maximum player counts.
- Support configurable attacker-to-defender ratios.
- Randomly assign teams when appropriate.
- Optionally let players choose teams before the event locks.
- Prevent team switching during an active round.
- Prevent spectators from interfering with objectives.
- Handle disconnects, deaths, respawns, and reconnects safely.
- Prevent players from joining multiple events simultaneously.
- Support configurable friendly fire.
- Prevent rewards from being claimed by players who did not legitimately participate.
Provide options for solo events when there are not enough players for full teams.
11. Economy and Rewards
Integrate with Vault and the existing economy provider.
Requirements:
- Configurable cash shipment value.
- Configurable attacker and defender rewards.
- Optional participation rewards.
- Optional MVP reward based on verified activity.
- Configurable entry fee, disabled by default.
- Optional bonus for a successful escape.
- Configurable reward splitting between winning participants.
- A configurable maximum reward per player.
- Transaction logging for every payment.
- Duplicate-payout prevention.
- Safe handling of offline players.
- A configurable cooldown before another heist can start.
Important economy rules:
- Do not create unlimited money through repeated event exploits.
- Do not award rewards multiple times for the same event.
- Do not pay players who never participated.
- Keep a persistent record of payouts and event results.
- Provide an option to fund rewards from a pre-funded event pool rather than generating new money.
12. PvP and Combat Integration
The plugin must work with normal Paper PvP and avoid interfering with unrelated server gameplay.
Implement:
- Configurable PvP inside the event region.
- Combat logging detection.
- Death handling and respawn rules.
- Anti-team-kill protections if enabled.
- Configurable combat restrictions in the lobby.
- Protection against using commands to escape combat or the event.
- Optional integration with existing combat plugins if available.
Do not globally disable mechanics or commands across the entire server when only the event region requires restrictions.
13. User Interface
Create polished, configurable interfaces matching RebornVanilla's cyan-blue branding.
Include:
- A bank-themed event GUI.
- An event information menu.
- A team selection menu.
- A live event scoreboard.
- Boss bars showing countdown and objective progress.
- Action bar updates for the shipment carrier.
- Clean chat announcements.
- Sound and particle feedback.
- A post-event results GUI.
The interface should display:
- Event name.
- Current phase.
- Time remaining.
- Attacker and defender counts.
- Current objective.
- Vault status.
- Shipment carrier.
- Reward pool.
- Current team scores.
Use Adventure Components for modern text formatting where appropriate. All messages, colours, titles, sounds, and UI settings must be configurable.
14. Statistics and Leaderboards
Persist statistics for:
- Heists participated in.
- Attacker victories.
- Defender victories.
- Successful extractions.
- Objectives completed.
- Players stopped or defeated.
- Total event earnings.
- MVP awards.
Provide /heist stats and /heist top.
Prevent fake statistics from spectators, duplicate events, or invalid reward claims.
15. Configuration
Provide a complete example configuration with options for:
- Event timings and schedules.
- Countdown intervals.
- Minimum and maximum players.
- Team sizes and balancing.
- Objective types and durations.
- Vault location and protected regions.
- Extraction location.
- Shipment value and rewards.
- Economy integration.
- PvP settings.
- Respawn and disconnect handling.
- Cooldowns.
- Announcements and messages.
- Sounds, particles, and GUI appearance.
- Permissions.
- Logging and database settings.
Use YAML files with sensible defaults. Validate configuration at startup and report invalid settings clearly.
Do not hardcode essential settings that should be configurable.
16. Persistence and Security
Use SQLite by default for persistent event statistics and transaction records.
Requirements:
- Safe database access.
- Appropriate database indexes.
- Prepared statements.
- No blocking database operations on the main server thread.
- Persistent event identifiers.
- Idempotent reward transactions.
- Proper cleanup of temporary tasks and boss bars.
- Recovery from interrupted events after server restarts.
- No item duplication or reward duplication during crashes.
- Validation of all player inputs and admin arguments.
If the server restarts during a heist, cancel or recover the event according to configuration. Never automatically pay an unverified winner.
17. Permissions
Create granular LuckPerms-compatible permissions, including:
rebornbankheists.adminrebornbankheists.createrebornbankheists.startrebornbankheists.stoprebornbankheists.reloadrebornbankheists.schedulerebornbankheists.participaterebornbankheists.statsrebornbankheists.bypass
Use least-privilege defaults. Only authorised staff should be able to manipulate active events, protected regions, or rewards.
18. Deliverables
Provide the complete project, including:
- All Java source files.
- Gradle or Maven build files.
plugin.yml.- Default configuration files.
- Database implementation.
- Event state machine.
- Team and objective systems.
- Vault and shipment systems.
- GUI and scoreboard systems.
- Economy integration.
- Permissions and tab completion.
- README with installation and setup instructions.
- Example setup commands.
- A clear testing checklist.
Build the plugin against the correct Paper 1.21.11 API and Java version compatible with the server.
Do not use imaginary methods, unsupported APIs, or fabricated dependencies.
19. Testing Requirements
Before declaring the plugin complete:
- Compile the entire project.
- Fix all compilation errors.
- Test every command and permission.
- Test all event phase transitions.
- Test objective completion and interruption.
- Test vault protection and shipment handling.
- Test player disconnects and server restarts.
- Test economy transactions and duplicate payout prevention.
- Test simultaneous event start attempts.
- Test edge cases involving death, reconnects, and event cancellation.
- Include automated tests for core logic where practical.
Do not claim a successful build or tests unless they were actually run.
Final Instructions
Build this as a cohesive, maintainable, production-quality Minecraft plugin specifically for RebornVanilla.
Prioritise fun gameplay, meaningful PvP, a polished user interface, secure economy integration, and exploit prevention.
Do not give me only a tutorial or a few example classes. Generate the complete source project with every required file and make sure the build succeeds.
If you need to make a design decision, choose the safest sensible default and document it instead of leaving a core feature unfinished.
There are no projects in this workspace yet. Should this be a new Java Paper plugin project for RebornVanilla, or an existing project that you’ll add to the workspace?
new
Started the RebornBankHeists plugin project for Paper 1.21.11. The implementation is underway, including the event lifecycle, commands, vault and shipment mechanics, economy integration, persistence, and setup documentation. I’ll compile it once the project work is finished.
STOP ALL
Stopped the active build task for RebornBankHeists. Any changes already made remain in the project; I did not compile it.
Confirmed. The RebornBankHeists task is cancelled. Any changes already made remain in the project; no compile was run.
No files in this session