ArenaCreateWizard

Chat-based arena creation wizard.

This keeps a small per-player session in memory so players can run around and click chat buttons to add points, then save/refresh.

Functions

Link copied to clipboard
fun addPoint(player: ServerPlayer)

Adds a point at the player's current block position.

Link copied to clipboard
fun addSpawnMarker(player: ServerPlayer)

Adds a spawn marker at the player's current position.

Link copied to clipboard
fun cancel(player: ServerPlayer)

Cancels the current wizard session for player.

Link copied to clipboard
fun clearPoints(player: ServerPlayer)

Clears all points in the current wizard session.

Link copied to clipboard
fun save(player: ServerPlayer)

Saves the current wizard session and exports the template.

Link copied to clipboard
fun sendStatus(player: ServerPlayer)

Sends the current wizard status (including clickable controls) to chat.

Link copied to clipboard
fun setLowerY(player: ServerPlayer, y: Int)

Sets the lower Y bound used when exporting this arena.

Link copied to clipboard
fun setUpperY(player: ServerPlayer, y: Int)

Sets the upper Y bound used when exporting this arena.

Link copied to clipboard
fun start(player: ServerPlayer, key: String): Boolean

Starts a new arena creation wizard session for player.

Link copied to clipboard
fun startEdit(player: ServerPlayer, key: String): Boolean

Starts an edit wizard session, loading points from an existing arena definition.

Link copied to clipboard
fun teleportToCenter(player: ServerPlayer)

Teleports the player to the center of the active wizard bounds.

Link copied to clipboard
fun togglePreview(player: ServerPlayer)

Toggles particle preview rendering.

Link copied to clipboard
fun undoPoint(player: ServerPlayer)

Removes the most recently added point.