How a bedwars plugin works under the hood
A round follows a fixed cycle: players wait in a lobby, a countdown starts once enough have joined, teams spawn on their islands, and the game ends when one team is left. A custom bedwars plugin is essentially a state machine around that cycle, deciding what each player may do in each state.
The bed is the rule everything hangs on. While it stands, a dead player respawns after a short delay; once it is broken, the next death is a final kill and the player becomes a spectator. The plugin tracks one bed per team, announces its destruction and stops players from breaking their own.
- Game states: waiting, starting, in game, ending
- Colored teams with matching wool and armor, friendly fire off
- Death below a Y level you choose, credited to the last attacker
- Only blocks placed during the match can be broken
