📄
pasted-code-1790443806010.txt
txt
79 lines
▶
You are tasked with developing a comprehensive Minecraft BedWars plugin named AzBedWars with a dedicated .yml configuration file system for each arena. The plugin must comprehensively support all core features, commands, mechanics, and gameplay flow as detailed below, enabling direct implementation by a plugin developer or as instructions for an AI-assisted development process.
---
**Core Commands & Arena Setup:**
- Base command: `/azbedwars` with alias `/abw`.
- Arena management commands:
- `/abw create [arenaName] [totalPlayers]`: Creates a unique .yml config file for the arena.
- `/abw setwaitlobby [arenaName]`: Defines the lobby location where players wait before the game starts.
- `/abw maxplayers [arenaName] [count]`: Automatically starts a 10-second countdown when player count is met.
- `/abw save [arenaName]` and `/abw edit [arenaName]`: Save or edit arena configurations.
- `/abw help 1/2`: Displays detailed help pages for all commands.
**Team & Spawn Mechanics:**
- Team management:
- `/abw create team [Color] [TeamSize]`: Supports Red, Blue, Green, Yellow, Aqua, White, Pink, Gray teams.
- `/abw teamdel [teamName]`: Deletes a specific team.
- Bed and spawn points configuration:
- `/abw set team bed [teamName]`: Sets the bed block location for the team (player must look at the bed).
- `/abw setspawn [teamName] [index]`: Sets individual spawn points per team member by index to avoid overlapping spawns.
- Starting mechanics:
- Players spawn inside glass cages (SkyWars style).
- A 3-second countdown displayed as subtitles "3-2-1 Fight!", then cages break simultaneously.
- Player gear:
- On spawn, players receive unbreakable leather armor dyed to their team color and a wooden sword.
- Gear is automatically given on respawn if the team bed is intact.
**Generators & NPC Management:**
- Resource generators:
- `/abw setgenerator [Iron/Gold/Diamond/Emerald] [speed]`: Places a resource spawner at the player's location.
- `/abw jerenatordel [ID]`: Removes a specific generator by ID.
- Shop NPCs:
- `/abw setshop`: Spawns Hypixel-style NPCs with custom IDs for shop interface.
- `/abw setshopdel [ID]`: Removes specific shop NPCs.
- Upgrade NPCs:
- `/abw setupgrade`: Spawns NPCs for team upgrades (e.g., Sharpness, Protection).
**Gameplay Logic and Flow:**
- Death mechanics:
- If the team bed exists, players enter a 5-second spectator mode upon death before respawning.
- If the bed is destroyed, players have permanent death.
- Custom titles/subtitles display on bed destruction and game start.
- Automatic handling of team gear and respawn logic.
**Scoreboard and Stats:**
- Dynamic scoreboard sidebar displaying:
- Arena name
- Team statuses (alive, dead, bed intact/destroyed)
- Player kills
- Game timer
- Player stats command:
- `/abw stats [playerName]`: Displays the player’s wins, losses, final kills, and bed destructions.
- Victory conditions:
- The last team standing is declared the winner with a "Victory" title and firework effect.
---
Your solution must ensure clarity, modularity, and professionalism. Include detailed command usage descriptions and expected behaviors, so a developer or AI can implement the full plugin without ambiguity.
# Output Format
Provide the full detailed prompt text exactly as above, formatted as a single string suitable for feeding to a development assistant or AI. No explanations, code, or commentary outside the prompt text.
# Name
AzBedWars All-In-One Plugin Prompt
# Short Description
Comprehensive detailed prompt for creating a full-featured BedWars Minecraft plugin with arena management, teams, NPC shops, generators, scoreboard, and stats.
# Icon
Game Controller Icon (use "GameControllerIcon" or closest available from icon set)
# Category
programming
# Tags
["Minecraft", "Plugin", "BedWars", "Minecraft Plugin" ]
# Should Index
true
You are tasked with developing a comprehensive Minecraft BedWars plugin named AzBedWars with a dedicated .yml configuration file system for each arena. The plugin must comprehensively support all core features, commands, mechanics, and gameplay flow as detailed below, enabling direct implementation by a plugin developer or as instructions for an AI-assisted development process.
Core Commands & Arena Setup:
Base command:
/azbedwarswith alias/abw.Arena management commands:
/abw create [arenaName] [totalPlayers]: Creates a unique .yml config file for the arena./abw setwaitlobby [arenaName]: Defines the lobby location where players wait before the game starts./abw maxplayers [arenaName] [count]: Automatically starts a 10-second countdown when player count is met./abw save [arenaName]and/abw edit [arenaName]: Save or edit arena configurations./abw help 1/2: Displays detailed help pages for all commands.
Team & Spawn Mechanics:
Team management:
/abw create team [Color] [TeamSize]: Supports Red, Blue, Green, Yellow, Aqua, White, Pink, Gray teams./abw teamdel [teamName]: Deletes a specific team.
Bed and spawn points configuration:
/abw set team bed [teamName]: Sets the bed block location for the team (player must look at the bed)./abw setspawn [teamName] [index]: Sets individual spawn points per team member by index to avoid overlapping spawns.
Starting mechanics:
Players spawn inside glass cages (SkyWars style).
A 3-second countdown displayed as subtitles “3-2-1 Fight!”, then cages break simultaneously.
Player gear:
On spawn, players receive unbreakable leather armor dyed to their team color and a wooden sword.
Gear is automatically given on respawn if the team bed is intact.
Generators & NPC Management:
Resource generators:
/abw setgenerator [Iron/Gold/Diamond/Emerald] [speed]: Places a resource spawner at the player’s location./abw jerenatordel [ID]: Removes a specific generator by ID.
Shop NPCs:
/abw setshop: Spawns Hypixel-style NPCs with custom IDs for shop interface./abw setshopdel [ID]: Removes specific shop NPCs.
Upgrade NPCs:
/abw setupgrade: Spawns NPCs for team upgrades (e.g., Sharpness, Protection).
Gameplay Logic and Flow:
Death mechanics:
If the team bed exists, players enter a 5-second spectator mode upon death before respawning.
If the bed is destroyed, players have permanent death.
Custom titles/subtitles display on bed destruction and game start.
Automatic handling of team gear and respawn logic.
Scoreboard and Stats:
Dynamic scoreboard sidebar displaying:
Arena name
Team statuses (alive, dead, bed intact/destroyed)
Player kills
Game timer
Player stats command:
/abw stats [playerName]: Displays the player’s wins, losses, final kills, and bed destructions.
Victory conditions: The last team standing is declared the winner and receives a “Victory” title and firework effect.
Your solution must ensure clarity, modularity, and professionalism. Include detailed command usage descriptions and expected behaviors, so a developer or AI can implement the full plugin without ambiguity.
Core Commands & Arena Setup:
- Base command:
/azbedwarswith alias/abw. - Arena management commands:
- /abw create [arenaName] [totalPlayers]: Creates a unique .yml config file for the arena. - /abw setwaitlobby [arenaName]: Defines the lobby location where players wait before the game starts. - /abw maxplayers [arenaName] [count]: Automatically starts a 10-second countdown when player count is met. - /abw save [arenaName] and /abw edit [arenaName]: Save or edit arena configurations. - /abw help 1/2: Displays detailed help pages for all commands.
Create the Gradle/Paper plugin skeleton and per-arena YAML persistence.
Implement arena creation, lobby/max-player setup, save/edit, and help commands.
Add arena joining/leaving so the configured player threshold can trigger its 10-second countdown.
Created the AzBedWars Paper plugin with per-arena YAML files and the requested create, lobby, max-player, save, edit, and help commands. Added join/leave commands so reaching arena capacity can trigger the 10-second countdown.
package com.azbedwars;
import org.bukkit.plugin.java.JavaPlugin;
public final class AzBedWarsPlugin extends JavaPlugin {
private ArenaManager arenaManager;
@Override
public void onEnable() {
arenaManager = new ArenaManager(this);
arenaManager.loadArenas();
getServer().getPluginManager().registerEvents(arenaManager, this);
getCommand("azbedwars").setExecutor(new ArenaCommand(arenaManager));
}
@Override
public void onDisable() {
if (arenaManager != null) {
arenaManager.shutdown();
}
}
}