Console Commands

Console commands are as easy as the chat commands but are well.. only available in the server console.

This example command will kick all the players.

[ConsoleCommand(name: "kickall", docs: "Kick all the players.")]
public static void KickAll()
{
    foreach(Player player in Player.PlayerList.WithoutServerPlayer()){
        player.Kick("You have been kicked by the console.");
    }
}

Last updated