Package-level declarations

General extensions for the Minecraft server

Properties

Link copied to clipboard
val MinecraftServer.players: List<ServerPlayer>

Returns the list of current online players, or an empty list if no players are online.

Link copied to clipboard
val MinecraftServer.serverPath: Path

Returns the current run directory of the server as an absolute Path.

Functions

Link copied to clipboard
fun MinecraftServer.executeCommand(command: String)

Executes the given command for this server.

fun MinecraftServer.executeCommand(command: String, source: CommandSourceStack)

Executes the given command for the specified source.