TeamDeathmatchGameLauncher

Opens evermod:team_deathmatch using a programmatically constructed config.

Functions

Link copied to clipboard
fun findWaitingGameSpace(): GameSpace?

Searches all open GameSpaces for one matching this game type that is still in the WAITING state.

Link copied to clipboard
fun joinOrOpen(server: MinecraftServer, player: ServerPlayer, arenaKey: String): CompletableFuture<GameSpace>

Joins an existing WAITING GameSpace for this game type, or opens a new one if none exists.

Link copied to clipboard
fun open(server: MinecraftServer, opener: ServerPlayer?, arenaKey: String): CompletableFuture<GameSpace>

Opens a brand-new GameSpace and attempts to join opener into it.