Skip to content

PlayerManager

areCheatsEnabled() -> Boolean

Returns whether cheats are enabled.

getCurrentPlayerCount() -> Integer

Returns the current amount of players.

getMaxPlayerCount() -> Integer

Returns the max player count.

getSimulationDistance() -> Integer

Returns the simulation distance.

getViewDistance() -> Integer

Returns the view distance.

isWhitelistEnabled() -> Boolean

Returns whether whitelist is enabled.

setCheatsEnabled(cheats_enabled: Boolean) -> Null

Sets cheats to be enabled according to cheats_enabled.

setSimulationDistance(simulation_distance: Boolean) -> Null

Sets the simulation distance according to simulation_distance.

setViewDistance(view_distance: Boolean) -> Null

Sets the view distance according to view_distance.

setWhitelistEnabled(whitelist_enabled: Boolean) -> Null

Sets whitelist to be enabled according to whitelist_enabled.

getPlayer(name: String) -> Null

Returns the player with the name name.