DUXPLIMA Documentation

Arenas

What an arena holds, its states, how a player gets in and out, and what entry does to them.

An arena is a box around a tower, with a plate inside it. Each arena is its own file, arenas/<id>.conf, written by the operator commands and the editor; the keys are on Arena files. A server may have any number of arenas, in any worlds.

The pieces

PieceKindNeededNotes
corner1, corner2blockyesOpposite corners of the box, in any order. Both blocks are inside
plateblockyesMust be inside the box. Any block: the plugin reads the position, not the type
spawnplaceyesA position with a facing. Put it inside the box
exitplaceyesA position with a facing, in any world
worldnameyesThe world of the box, the plate and the spawn
display-nametextnoThe name players read; the id when not set

States

StateShown in the listMeaning
onOn, glowingEvery piece set, switched on. Players can get in
offOffEvery piece set, switched off
incompleteStill to set, with the piecesA piece missing, or the plate outside the box. enable is refused

A new arena is off and empty. An edit that makes an open arena incomplete switches it off at once and the reply says why, so an arena is never open in a state nobody can play in. An arena file that has every piece but no enabled key reads as on.

Joining and leaving

Way inWhen
Walking inThe arena is on, join-on-enter is true, and the player steps from a block outside the box to a block inside it. A player who is already standing inside when the arena opens joins by walking out and back in
/kotl join <arena>The arena is on. The player is teleported to the spawn

A player is in one arena at a time. /kotl join while inside another arena is refused.

Way outItems and modeWhere the player ends upMoments
/kotl leaveGiven backThe exitdethroned if king, then left
Stepping out of the boxGiven backWhere they steppeddethroned if king, then left
QuittingGiven back at their next joinWhere they quitnone
The plugin or the server stoppingGiven backThe exitnone

A teleport out of the box by another plugin, such as /spawn, counts as stepping out on the player's next move.

What entry does

StepControlled byGiven back on leaving
The game mode is setentry.game-mode, adventure by defaultYes, the mode they had
The inventory is put away and emptiedentry.clear-inventory, on by defaultYes, exactly as it was
Potion effects are removedentry.clear-effects, on by defaultNo
The knockback stick is givenalwaysSee Fights

The game mode and the items are held in the server's memory while the player is inside: a crash loses them. A clean stop gives them back first.

The outline

While an operator has the editor open on an arena, the box is drawn around it in particles, for that operator alone, every boundary.outline.period-ms (1000). It follows every corner they set, and one corner set draws that single block. It is gone when they close the editor. Players in a round see no outline. The outline is set in config.conf.

Notes

  • Players inside keep the arena they joined. An edit, a reload or disable reaches a player when they leave and come back. delete is refused while anybody is inside.
  • The exit may be inside the box. A player put there by leave is not joined again, because joining by walking needs a step in from outside.
  • One arena per box. Two boxes that overlap both admit a walker into the first one found.

Related: The crown, Arena files, Operator commands