Overview
DeathSwap is a Minecraft minigame plugin where players are periodically teleported to each other’s locations at a configurable interval, with the goal of causing opponents to die from the swap (fall damage, lava, mobs, etc.). It provides admin commands to run the game end to end.
Features
/ds start,/ds stop, and/ds statusto control and check the game/ds reviveand/ds addplayerto manage participants mid-game/ds setintervalto configure the time between swaps- Boss bar countdown with a visible countdown and sound cues in the final seconds before each swap
- Permission-gated admin vs. status-only access (
deathswap.admin,deathswap.use)
How it works
GameManager tracks game state (WAITING, RUNNING, ENDED) and the list of alive players, while SwapTask is a repeating BukkitRunnable that counts down to each swap, updates the boss bar, and executes the player teleport swap when the interval elapses. GameListener and DeathSwapCommand handle in-game events and the /ds command tree respectively.
