ADDITIONAL FEATURES – TEAMWORK, BEDS & SPECTATOR MODE
Update the Fireball + Mace PvP plugin with the following features.
1. TEAMWORK SYSTEM
Add proper team-based gameplay for:
- 2v2
- 3v3
- 4v4
- FREE FOR ALL
- 1V1V1V1
- EXTRA
- Larger team matches if configured.
Features:
- Automatically split players into balanced teams.
- Team colours (Red, Blue, Green, Yellow).
- Display teammates in the scoreboard.
- Prevent friendly fire by default.
- Prevent teammates from damaging each other.
- Show teammate health.
- Allow players to join as a party.
- Keep parties on the same team.
- Track team kills and team wins.
- Automatically declare a team winner when all opponents are eliminated.
2. CUSTOM BEDS – BEDWARS-STYLE SYSTEM
Add a custom bed system inspired by BedWars.
Features:
- Each team has its own protected bed.
- Admins can configure each team's bed location.
- Beds must be breakable by enemies.
- Display a message when a bed is destroyed.
- Announce which team's bed was destroyed.
- Give beds custom team colours.
- Prevent teammates from breaking their own bed.
- Prevent beds from being broken outside active matches.
Respawn system
- While a team's bed is alive, eliminated players can respawn.
- When their bed is destroyed, they can no longer respawn.
- Players who die after their bed is destroyed are permanently eliminated from that match.
- If every player on a team is eliminated, that team loses.
- Last surviving team wins.
Make this system work in both Fireball Fight and Mace PvP, with an option to enable or disable beds for individual game modes.
3. MAP RESTORATION SYSTEM
IMPORTANT: Automatically restore the entire arena after every match.
Features:
- Save the original arena blocks before a match starts.
- Record blocks broken, placed and changed.
- Restore the arena after the match ends.
- Restore beds to their original positions.
- Restore explosions and fireball damage.
- Remove dropped items.
- Remove arrows, fireballs and other projectiles.
- Remove temporary blocks.
- Reset chests and containers.
- Reset all arena settings.
- Make the arena available for another match only after restoration finishes.
Make sure restoring one arena does not affect another active match.
Use an efficient restoration system that does not cause server lag.
4. SPECTATOR MODE
Add a complete spectator system.
Features:
- Players can spectate active matches.
- Spectators can fly.
- Spectators cannot attack or interact with blocks.
- Spectators cannot pick up items.
- Spectators are invisible to active players.
- Spectators can switch between players.
- Spectators can view both teams.
- Add a spectator GUI to select players.
- Add a command to leave spectator mode.
- Automatically return spectators to the lobby when the match ends.
Commands: /pvp spectate /pvp spectate \<player> /pvp spectator leave
5. ADMIN CONFIGURATION
Allow admins to configure:
- Whether beds are enabled.
- Whether respawning is enabled.
- Respawn delay.
- Bed health or break rules.
- Team colours.
- Friendly fire.
- Spectator permissions.
- Arena restoration delay.
- Maximum spectators per match.
6. IMPORTANT TESTING
Test all of the following:
- A player dies while their team's bed is alive and successfully respawns.
- An enemy destroys the bed.
- The team can no longer respawn.
- Eliminated players cannot rejoin the match.
- The opposing team wins correctly.
- Spectators cannot interfere with gameplay.
- The arena completely resets after the match.
- Another match can start in the restored arena.
- Other active arenas remain unaffected.
Do not use fake bed mechanics. Implement actual working custom bed protection, destruction and respawn logic.
Please add the existing Fireball + Mace PvP project to this workspace, or let me know if you want a new project created instead.
Fireball Mace PvP FROM MINE MEN
Please add Fireball Mace PvP from Mine Men to this workspace using the workspace view. I can then update the existing plugin.
I DONT HAVE
No problem. Would you like me to create a new Fireball + Mace PvP Minecraft plugin with these features?
Fireball Mace PvP Minecraft plugin FROM MINE MEN SERVER
Do you want me to create a new plugin inspired by the Fireball and Mace PvP modes on Minemen Club, including the features you listed? I can’t access the server’s original plugin code.
NO THE MODE CALL Fireball Mace
Got it—the mode is called Fireball Mace. Would you like me to create a new Minecraft plugin for that mode with the team, bed, arena restoration, and spectator features you listed?
MAKE
I’ve started creating the Fireball Mace PvP plugin with teams, beds, arena restoration, and spectator mode.
Build configurable arenas, queues, parties, teams and match lifecycle.
Add physical beds, respawns, spectators and protected arena restoration.
Document setup and commands in the plugin configuration and command help.Created the Fireball Mace PvP plugin with arena setup, team queues, parties, beds, respawns, spectators and batched block restoration. Use
/pvp helpfor commands; setup and settings are documented inconfig.yml.
Limitations: Restoration does not capture every container or environmental change, and delayed respawns are not rechecked if a bed is destroyed during the delay.
The plugin compiled successfully. I’ve started addressing two reported gaps: delayed respawns after bed destruction and complete arena restoration.
Fix delayed respawns and winner checks when a bed is lost.
Strengthen arena snapshots and restoration while preserving isolation and batching.- Delayed respawns now recheck bed and match state, eliminate affected players, and trigger winner checks.
Arenas now snapshot the full cuboid, restore blocks and containers in batches, and remain unavailable until restoration finishes. Added environmental and boundary protections and rejected overlapping arenas.
Snapshots are captured synchronously at match start, so very large arenas may cause a pause. Direct world edits by other plugins cannot be fully isolated.
The updates are complete, and the plugin compiles successfully. Delayed respawns now recheck bed status, and arenas are restored in batches before becoming available again.
Large arenas may pause the server during the initial snapshot. Direct world edits by other plugins may not be fully isolated. The requested gameplay scenarios have not been verified in-game.
- Does the player have a 3-second respawn countdown after dying?
- Does the countdown display on screen (3, 2, 1)?
- Is the player protected and unable to move or attack during the countdown?
- Does the player respawn automatically when the countdown reaches 0?
- Is their selected kit automatically reloaded after respawning?
- Are cooldowns reset?
- Does this work in every game mode (1v1, 2v2, 3v3, FFA and more)?
Important: Make the respawn system exactly 3 seconds, with a visible countdown, followed by automatic kit reload.
The current plugin has delayed respawns, but it doesn’t yet guarantee all the countdown and kit-reload behavior you described.
I’ve started updating it to use a fixed three-second countdown across eligible game modes, with protection, automatic respawn, kit reload, and cooldown resets.
fix an give it all when done and tell how to set up
I’ll finish the respawn fixes, check that the plugin compiles, and then give you the completed plugin and setup instructions.
Use the selected match mode as the kit, and reload its configurable loadout after a fixed 60-tick countdown.
Automatically dismiss the death screen, lock and protect countdown players, and cancel countdowns on elimination or departure.Implemented fixed 60-tick respawns with on-screen 3–2–1 titles, automatic death-screen dismissal, countdown protections, and cleanup on departure, match end, or bed destruction.
The selected mode supplies the reloaded kit; its weapon and fireball count are configurable. Legacy respawn-delay-seconds values are ignored. No tests were added.
The respawn update is complete, and FireballMaceArena compiled successfully. Eligible players get a 3–2–1 on-screen countdown, protection and movement restrictions, then automatically respawn with their mode’s kit and reset cooldowns. The countdown is 60 server ticks, so server lag can make it take longer than three real-world seconds.
Setup
Download the compiled plugin from the project and place the JAR in your server’s
pluginsfolder.Start a Paper server running Minecraft 1.21 or newer for mace support. Stop it after the plugin generates its config.
Edit
plugins/FireballMacePvP/config.ymlif you want to change modes, kits, bed rules, teams, or spectator settings. Start the server again.As an operator, create an arena:
Plain Text/pvp admin create arena1Stand at opposite corners of the arena and set its boundaries:
Plain Text/pvp admin pos1 arena1 /pvp admin pos2 arena1Stand at the lobby location and run:
Plain Text/pvp admin lobby arena1Stand at each team’s spawn and set it:
Plain Text/pvp admin spawn arena1 red /pvp admin spawn arena1 blueAdd
greenandyellowfor four-team formats.Place each team’s bed inside the arena. Look at it from within eight blocks and run:
Plain Text/pvp admin bed arena1 red /pvp admin bed arena1 blueSet green and yellow beds too if using four teams. Both halves of every bed and all spawns must be inside the arena boundaries.
Players can join with, for example:
/pvp join arena1 2v2 mace
Other default formats include 3v3, 4v4, ffa, and 1v1v1v1; the other default mode is fireball. The match starts when the queue is full. Use /pvp help for party and spectator commands.
The plugin has compiled, but the gameplay scenarios have not been verified in-game. Large arenas may also cause a pause when their initial block snapshot is taken.
📄
pasted-code-1794855403177.txt
txt
58 lines
▶
# CRITICAL BUG FIXES – FIREBALL MACE MINIGAME
The plugin is currently not working as intended. Fix all the following issues before declaring it complete.
## 1. Leaderboard
- Add a working leaderboard.
- Track player wins, kills, deaths and losses.
- Display the top players.
- Update automatically after every match.
- Save statistics permanently, even after server restarts.
- Add a leaderboard GUI or scoreboard.
## 2. Fireball Mace – NOT WORKING
- Fix the Fireball Mace completely.
- Make sure right-clicking launches the fireball correctly.
- Fix fireball launching, damage, knockback and hit detection.
- Make all abilities work correctly.
- Fix cooldowns.
- Make sure the Fireball Mace works in every game mode.
- Test it with multiple players.
## 3. Unbreakable Maps
- Players must NOT be able to break any blocks that originally belong to the map.
- Players must NOT be able to place blocks unless the game mode specifically allows it.
- Players can ONLY break blocks that players have placed during the current match.
- Track placed blocks separately for each arena.
- Restore the original map after every match.
- Remove all player-placed blocks when the match ends.
- Prevent explosions, fireballs and other abilities from damaging the original map.
- Protect map blocks against pistons, TNT and other block-changing mechanics.
## 4. Match Reset
- Completely reset the arena after every match.
- Remove dropped items, projectiles and temporary entities.
- Reset player positions.
- Reset teams and match data.
- Make the arena ready for the next match automatically.
## 5. Testing – ALL MODES
Test everything in:
- 1v1
- 2v2
- 3v3
- 1v1v1v1
- FFA
- Any additional team modes.
## 6. Final Verification
Do not say the plugin is finished until everything works.
Provide a checklist showing:
- DONE – Fully working.
- BROKEN – Still not working.
- FIXED – Bug has been repaired.
Test with multiple real players, not just one player or a simulated test.
**IMPORTANT:** Do not remove existing features. Fix the actual bugs, preserve the Fireball Mace mechanics and make the entire plugin work as intended on Paper 1.21.11.
I’ve started fixing the leaderboard, Fireball Mace mechanics, map protection, and match resets while preserving the existing features.
I can check compilation when the changes are done, but I can’t conduct the requested real-player testing on a server. I’ll distinguish verified results from anything still untested.
Add persistent player statistics and a leaderboard.
Repair fireball combat and protect original arena blocks.
Update formats, configuration and command help.Implemented persistent wins, losses, kills and deaths, with
/pvp topfor the leaderboard. Added the 1v1 format, repaired fireball launching and combat handling, and protected original arena blocks while allowing per-mode placement.
Limitations: Indirect kill credit, such as a knockback into the void, depends on server attribution. Arena snapshots and pre-match player state are in memory, so a server crash can interrupt restoration. Direct world edits by other plugins cannot be fully isolated. No tests or real-player testing were performed.
The fixes have been implemented, and the plugin compiles successfully. It is not yet verified as fully working in-game.
Checklist
FIXED — awaiting gameplay verification: Persistent wins, losses, kills and deaths;
/pvp topleaderboard.FIXED — awaiting gameplay verification: Fireball launching, combat handling and cooldowns.
FIXED — awaiting gameplay verification: Original map-block protection, per-mode placement and arena restoration.
FIXED — awaiting gameplay verification: Added 1v1 alongside the existing team and FFA formats.
NOT VERIFIED: Matches with multiple real players across all modes.
Known limitations: Void kills depend on server attribution. A server crash can interrupt restoration because arena snapshots are held in memory. Direct world edits by other plugins may bypass arena isolation.
Download the latest JAR from FireballMaceArena and use the earlier setup instructions; /pvp top opens the leaderboard.
CRITICAL FIX – FIREBALL SELF-LAUNCH / BOOST NOT WORKING
The Fireball Mace must launch the player when they use it.
- When a player hits or launches a fireball, the explosion must apply knockback to the player who launched it.
- Launch the player upwards and forwards, just like the Minemen Club Fireball Mace.
- The launch must feel smooth and powerful.
- Use proper velocity calculations based on the player's looking direction.
- Make sure the player can use the boost to travel through the air.
- Do not launch the player in random directions.
- Fix velocity being cancelled or overwritten by other plugin mechanics.
- Make sure the launch works consistently, including while jumping or falling.
- Apply the correct cooldown.
- Do not damage the arena map.
- Make sure the mechanic works in 1v1, 2v2, 3v3 and FFA.
Testing requirements
- Right-click/use the Fireball Mace.
- Confirm the fireball launches.
- Confirm the player is launched upwards and forwards.
- Confirm the boost works repeatedly after cooldown.
- Test with multiple players.
IMPORTANT: The player must receive a real velocity boost from their own fireball. Simply spawning a fireball is NOT enough. Match the Minemen Club Fireball Mace launch behaviour as closely as possible.
I’ve started fixing the self-launch so the player receives a real upward and forward velocity boost, while keeping fireball cooldowns and map protection intact. I’ll check compilation when it’s ready; real-player gameplay will still need verification.
Apply one immediate, look-directed boost when an eligible fireball is successfully launched.
Keep projectile and combat handling unchanged, and document per-mode boost settings.Implemented a single forward-and-up boost on successful fireball launch, including midair launches. Per-mode boost settings and the exact trigger are documented in
config.yml.
Limitation: Vanilla explosion knockback can still affect the shooter separately when the fireball impacts. No real-player testing was performed.
The self-launch fix is implemented and the plugin compiles successfully. Launching an eligible fireball now applies one immediate forward-and-up velocity boost, including in midair. Boost strength is configurable per mode.
Vanilla explosion knockback may still affect the shooter separately on impact. The mechanic has not been verified with real players, so I can’t yet confirm its in-game feel or consistency. Download the latest JAR from the project to try it.
No files in this session