Silk

object Silk(source)

An object containing global values used by Silk.

Properties

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

Returns the list of current players, or an empty list if no players are online or the server has not been started yet.

Link copied to clipboard
var server: MinecraftServer?

The current MinecraftServer instance. This property is null when being accessed and no server has startet yet.

Link copied to clipboard
val serverOrThrow: MinecraftServer

The current MinecraftServer instance. This property throws an IllegalStateException when being accessed and no server has startet yet.