Optional
properties: Partial<ServerProperties>The properties to use for the server
Readonly
commandThe global commands registry for the server. The commands will register on every world that is created.
Readonly
consoleThe console command interface for the server
The current tick of the server
Readonly
generatorsThe registered terrain generators that are available to the server
Readonly
loggerThe logger instance for the server
Readonly
networkThe network handler for the server
Readonly
permissionsThe permissions interface for the server.
Readonly
playersThe players that are currently connected to the server
Readonly
propertiesThe properties that are being used for the server
Readonly
providersThe registered providers and properties that are available to the server
Readonly
resourceThe resource pack manager for the server.
Readonly
schedulesThe tick schedules that are currently active on the server. These schedules will be executed when the server ticks.
Readonly
simulationsThe simulations that are currently active on the server. These simulations will be executed at a higher frequency than the server ticks.
The current state of the server, whether it is starting up, running, or shutting down
The ticks that have been recorded by the server
The current ticks per second of the server
Readonly
worldsThe worlds that are currently loaded on the server
Creates a new world using the specified provider
The provider to use for the world
Optional
properties: Partial<WorldProperties>The properties to use for the world
The created world, if successful; otherwise, false
Gets the permission member for the specified player; creates a new member if one does not exist
The player to get the member permission for.
The member permission for the player.
Gets a player by their raknet connection
The connection to get the player from
The player, if found; otherwise, null
Gets a player by their username
The username to get the player from
The player, if found; otherwise, null
Gets a player by their uuid
The uuid to get the player from
The player, if found; otherwise, null
Gets a player by their xuid
The xuid to get the player from
The player, if found; otherwise, null
Reads the server properties from the specified path
The path to read the server properties from
The server properties that were read
Registers a provider with the server
The provider to register
Optional
properties: Partial<WorldProviderProperties>The properties to use for the provider
Whether the provider was successfully registered or not
Optional
event: KOptional
event: KOptional
event: KSets the message of the day for the server
The message of the day to set
Simulates the callback at the specified frequency. This will run at a higher frequency then minecraft ticks.
Simulation frequency in seconds. The server game loop is capped at 100 simulations per second.
The callback to run when its time to simulate.
An object containing some controls for the simulation.
Starts the server and begins listening for incoming connections
Stops the server and closes all connections
Writes the server properties to the specified path
The path to write the server properties to
Whether the properties were successfully written or not
Creates a new serenity server with the specified properties