Skip to content

host and room config

Walidoux edited this page May 26, 2026 · 1 revision

Host & Room Config

GameRoomConfig

Immutable record holding all host-configurable room settings, passed to GameRoom at construction:

Field Type Description
islandType IslandType 4-island or 8-island layout
maxTeams int Number of teams (2–islandType.count)
teamSize TeamSize Players per team
mapType MapType Island visual theme
extraHearts boolean Whether bed destructions grant permanent health bonuses
overtimeStart boolean Whether the game starts in overtime (deathmatch) mode
overtimeDuration int Minutes of play before overtime begins (default: overtime-duration from config, range 5–120)

Host

The player who created the GameRoom, identified by hostUUID (UUID) and hostName (String) on GameRoom. Teleported to the WaitingRoom when CREATING completes.

Host powers during WAITING phase:

  • Force-start — skip the lobby countdown
  • Kick — remove any player from the room

Host transfer: if the host disconnects during WAITING, host status transfers permanently to the longest-present player (join order tracked on GameRoom). The original host cannot reclaim status on reconnect — they rejoin as a regular player.

Host Panel

A CraftEngine item (tland:host_panel) given exclusively to the host in inventory slot 8 upon entering the WaitingRoom. Right-clicking opens a BasicGui with a force-start button and a scrollable player list with per-player kick buttons. When host status transfers, the panel item is removed from the outgoing host and given to the incoming host.


Resource Economy

Clone this wiki locally