6

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:

  1. WAITING — Event exists and is waiting for players.
  2. ANNOUNCEMENT — The server announces the upcoming event.
  3. COUNTDOWN — Players join, select teams, and prepare.
  4. LOCKED — Team selection closes and the teams are finalised.
  5. INFILTRATION — Attackers enter the bank and begin completing objectives.
  6. VAULT OPEN — The attackers have unlocked the vault.
  7. ESCAPE — Attackers must transport the stolen shipment to the extraction point.
  8. COMPLETED — A winner is determined and rewards are distributed.
  9. 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.admin
  • rebornbankheists.create
  • rebornbankheists.start
  • rebornbankheists.stop
  • rebornbankheists.reload
  • rebornbankheists.schedule
  • rebornbankheists.participate
  • rebornbankheists.stats
  • rebornbankheists.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.

Kodari AI
KodariOct 28 at 1:21 am 1

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?

6

new

Kodari AI
KodariOct 28 at 1:22 am 1
Created RebornBankHeistsPlugins
Delegated to RebornBankHeists Running
Build the complete RebornBankHeists Minecraft server plugin in this empty project, targeting Paper 1.21.11 with Java 21 and Maven or Gradle consistent with the project template. This is a real cohesive implementation, not a tutorial. Implement code and resources only; do not write tests or claim to build/compile (the workspace lead will compile it). Include a README with installation, setup commands, sensible design/safety decisions, and a manual testing checklist. Plugin identity: RebornBankHeists, main package/name of your choice, command `/heist`, permission root `rebornbankheists`. Use actual supported Paper/Bukkit APIs; no NMS and no imaginary dependencies. Integrate Vault economy by soft dependency and Vault API; LuckPerms-compatible granular Bukkit permissions (no hard LuckPerms dependency). Keep all relevant text/settings configurable, cyan/blue default branding. Deliverables: all Java source, build configuration, plugin.yml, default YAML config(s), SQLite persistence implementation, README. Use Paper API 1.21.11-compatible coordinates/API and Java 21. Declare Vault API appropriately in the project dependency setup and softdepend metadata; handle missing Vault/provider gracefully. Keep database operations off the server thread (single-thread executor/connection strategy with prepared statements), properly close resources and tasks. SQLite should persist player stats, event results, and an idempotent transaction ledger/event ids. Ensure reward payouts are duplicate-safe across retries/restarts; do not auto-pay interrupted/unverified winners. Handle online/offline payout safely and document the limits of Vault's non-transactional economy API. Configurable recovery policy should safely cancel interrupted rounds by default. Validate configuration and log actionable errors. Feature requirements: 1. A well-defined, validated state machine: WAITING, ANNOUNCEMENT, COUNTDOWN, LOCKED, INFILTRATION, VAULT_OPEN, ESCAPE, COMPLETED, CANCELLED. Prevent illegal transitions, concurrent active rounds, double finish/reward, duplicate assignment. Only one active round globally is an acceptable documented safe design. Definitions saved persistently in YAML. 2. Admin commands: `/heist create <name>`, `setspawn`, `setvault`, `setexit`, `setguardspawn`, `start`, `stop`, `schedule <name> <time>`, `reload`, `status`, `setreward`, `setduration`, `sette ams` (actual syntax `/heist setteams <name> <attackers> <defenders>`), `wand <name>`. Player commands: `/heist join <name>`, `/heist leave`, `/heist info <name>`, `/heist stats [player]`, `/heist top`, `/heist team`, `/heist map`. Add clear usage/errors, tab completion, and permission checks. Avoid typo in actual command name: implement `setteams`. Store selections for protected bank region from a wand (two corners) and persist them. Ensure commands do not permit escaping active event/combat restrictions except safe leave/cancel rules. 3. Lifecycle: announcements/countdowns, joinable lobby until LOCKED only, minimum/maximum counts and configurable team ratio/limits, fair randomized assignment, optional solo mode, no team switching once locked, safe leave/disconnect/death/respawn/reconnect handling. Save and restore relevant player state (inventory/armor/offhand, location, game mode, flight, health/food, effects/XP as appropriate) on all exits; never overwrite other plugins' state unnecessarily. Prevent a player participating in multiple events. Use targeted event-region restrictions, not global gameplay changes. 4. Objectives: implement configurable server-validated objective types such as sequence of terminals, multiple lever/power switches, timed drill proximity, and/or capture/hold override. At least multiple working objective types, configurable positions, duration/cooldowns, interruption/defender interference, announcements, and actionbar/bossbar feedback. No click-spam instant completions. Ensure all interactions are checked against round phase, player team, location/world, objective state and cooldown. Use cleanly configurable defaults and explain setup. 5. Vault/protected region: vault unavailable until objectives complete; vault interaction/region protected from unauthorized blocks, containers, breaking/placing, explosions, pistons, etc. Protect only configured event area and preserve pre-existing builds. Avoid modifying existing blocks where possible; if any temporary world changes are used, record originals and restore safely. Correctly gate vault open and track state. Include shipment only once objectives pass. 6. Shipment/extraction: one unique server-validated PDC item per event, represented as configurable named cash bag/briefcase. Carrier feedback/visibility, pickup/drop notifications to both teams, extraction requires carrier to reach configured extraction point with shipment. Stop duplicate, container/ender-chest storage, death exploits, cross-world transport, invalid or lost-item exploits. Configure drop/recovery-on-death behavior; provide safe recovery or cancellation if shipment becomes invalid/lost. Shipment does not itself pay cash until successful extraction and round resolution. 7. Defenders: dedicated team, guard spawn, objective/vault/carrier notifications, valid PvP interception, configurable friendly fire and PvP region restrictions, anti-camp protections (spawn protection/entry rules), timeout defender win. Do not add unsupported NPC dependencies. 8. Economy/rewards: configurable shipment value, attacker/defender/participation/MVP rewards, optional entry fee disabled by default, successful extraction bonus, split behavior, per-player cap, optional pre-funded pool, cooldown. Verify legitimate participation; do not reward spectators/nonparticipants. Record each payment and result persistently, prevent repeat payout. If provider missing, fail safely without losing ledger information or falsely declaring payment success. Keep all economy actions on main thread if required by Vault, while DB persistence is async with safe idempotent sequencing. Log transactions. 9. UI: cyan-blue bank-themed event/info/team selection GUI, live scoreboard or equivalent per-participant scoreboard, countdown/objective bossbar/actionbar, event results GUI, announcements/title/sound/particles where configured. Include event name/phase/time/team counts/objective/vault/shipment/reward info. All text/sounds/UI configuration sensible; Adventure components where supported. Ensure scoreboards/bossbars/inventories are cleaned up/restored. 10. Stats: persist participation, attacker/defender wins, successful extracts, objectives, stops/defeats, earnings, MVPs. `/heist stats` and `/heist top` should safely read persistent data and avoid main-thread DB blocking; return useful messages. Count only legitimate participants. 11. Security/stability: validate names and numeric inputs; no unsafe world modifications; all listeners cancel invalid state, maintain strict per-player session mapping; cleanup tasks, boss bars, temp data on all terminal paths and plugin disable. Persist results/payout state. Gracefully handle reload with active events (safe cancel) and server restart. Include optional schedule format documented; implement actual scheduled starts using config or command and avoid duplicate schedules. Ensure all phase transitions resolve to safe terminal state. Permissions with least privilege and plugin.yml defaults: `rebornbankheists.admin`, `.create`, `.start`, `.stop`, `.reload`, `.schedule`, `.participate`, `.stats`, `.bypass`. Admin may imply administrative subpermissions; regular join/stats should be appropriately accessible. Add permission declarations. Provide default configuration covering event timing/countdown, player/team limits, objectives, region/locations, reward economy, PvP, death/disconnect, cooldown, messages, sounds, GUI, logging/database/recovery and schedules. Defaults should be safe and workable; document required location/region setup and example setup commands in README. Important implementation choice: because the request is broad, prioritize stable and secure functional end-to-end event loop, objective interactions, vault/shipment/extraction, durable rewards/stats, commands, protections, and cleanup over superficial complexity. Implement requested listed features honestly; where a requested polish feature has to be simplified, document it explicitly and safely rather than adding a broken placeholder. Do not write automated test source files.

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.

6

STOP ALL

Kodari AI
KodariOct 28 at 1:37 am 1
Delegation to RebornBankHeists cancelled

Stopped the active build task for RebornBankHeists. Any changes already made remain in the project; I did not compile it.

Report from 1 project
TaskBuild the complete RebornBankHeists Minecraft server plugin in this empty project, targeting Paper 1.21.11 with Java 21 and Maven or Gradle consistent with the project template. This is a real cohesiv...
Kodari AI
KodariOct 28 at 1:37 am 1

Confirmed. The RebornBankHeists task is cancelled. Any changes already made remain in the project; no compile was run.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code