-
Notifications
You must be signed in to change notification settings - Fork 368
Server administration
The game has a command system, which allows every player to send commands to the server. When server receives a command, he executes it in the context of sending player. This can be used to administrate servers.
Some commands are restricted only to "admin" players. To allow the players to authenticate as admins, add admin_pass
property to config.user.json
file. Then, authenticate by sending command /auth password_from_file
. If the provided password matches the password in file, the player becomes admin of server.
To send command, simply type it in the chat box. To list all available commands, type /help
.
Once you are authenticated as admin, you can execute commands that require high privilege. For example, you can kick any player by typing /kick {playerNetId}
.
You can also execute commands in the context of server (as if the server executed them). This is done by adding prefix /cmd_server
to every command. With this, you can for example, broadcast message to all players as if the server sends it: /cmd_server say Welcome to the server !
.