Gameplay Loop

2commands
1file
1figure
3min read
Sheet 6 of 31 · Playing

Filesconfig.yml

Fileconfig.ymlCommand/zombies joinCommand/zombies leaveThis page follows one match from the moment a player joins to the moment they are back where they started.

Joining

Command/zombies joinPlayers join with /zombies join <arena>, the /zombies selector GUI or the lobby NPC. An arena takes players while it is WAITING or in COUNTDOWN. A running match is closed to new players, and a full arena (max-players, 4 by default per arena) turns them away.

On join the plugin stores the player's inventory, level, XP and game mode, then:

  • switches them to Adventure mode with full health and food;
  • clears the inventory and XP and draws the arena hotbar;
  • teleports them to the arena lobby.

Countdown

The countdown starts as soon as the player count reaches min-players (1 by default). It runs for countdown-seconds (30), announcing every ten seconds and every second of the last five. It only stops if everyone leaves; dropping back under min-players does not cancel it. The seconds left also show as the player's XP level.

Game start

When the countdown ends, every player:

  • is teleported to the arena spawn;
  • gets the starting-weapon (M1911) and, if set, the starting-armor tier;
  • starts with $0.

Wave 1 begins right away.

Waves

Each wave spawns its enemy list one at a time from eligible spawners, and ends when the last enemy dies. Players who are standing (not downed, not spectating) get the wave-reward ($200), then the next wave starts after wave-end-delay-seconds (5). At the start of every wave there is a event-chance-percent (15%) chance of a round event. Details are on Waves and Power-Ups & Events.

Fileconfig.ymlThere is no last wave and no win screen. A match runs until the team is gone. Past the waves the arena has set up, endless-waves in config.yml keeps them coming; see Waves.

Going down and dying

A hit that would kill a player puts them down instead. They get a bleedout timer (downed-bleedout-seconds, 60), lose a tier of armor and their kill streak, and can be revived by a teammate. If nobody reaches them in time they bleed out and become a spectator for the rest of the match. See Revives & Barricades.

Game over

The match ends when:

  • the last downed player bleeds out and nobody is left standing, or
  • the last living player leaves the arena, even when spectators are still in it.

When it ends, each player sees how many waves they survived, has their stats recorded and is sent to the main lobby. With no main lobby set they go to the lobby NPC, and with no NPC back to the spot they joined from. Their inventory, level, XP, game mode, health, hunger and potion effects come back, gates and barricades are rebuilt, leftover enemies are removed and the arena returns to WAITING.

Command/zombies leaveLeaving mid-match with /zombies leave or by disconnecting restores the player the same way and sends them to the same place. A player who disconnected is standing in the lobby when they log back in.

House rules inside an arena

RuleDetail
HungerAlways full. Hunger is not part of the mode.
InventoryClicks, drags and hand swaps outside the plugin's menus are blocked, so the hotbar stays in order.
DropsItems cannot be dropped.
DurabilityHeld items never lose durability.
CommandsOnly the commands in command-whitelist work.

Hotbar layout

SlotsHolds
1 - 3Weapons. Two slots to start, the third opens with the Bonus Weapon perk.
7 - 9Perks, up to max-perks (3).
Wave 1 has just begun. The action bar shows wave, enemies left, money and ammo; the sidebar repeats it for the team.
The start room at the beginning of wave 1: armor shop, armor forge and mystery box holograms, the sidebar, the action bar with wave, enemies, money and ammo, and the countdown in chat

Arena and player states

Arena statusMeaning
WAITINGOpen and waiting for players.
COUNTDOWNStarting soon. Still open to joins.
RUNNINGWaves are running. Closed to joins.
ENDINGCleaning up. Lasts a moment, then back to WAITING.
Player statusMeaning
LOBBYJoined, waiting for the match.
PLAYINGStanding and fighting.
DOWNEDDown and bleeding out. Can be revived.
SPECTATINGBled out. Watches until the match ends.

Loading the index

Enter openUp Down moveEsc close