Schedule Dedicated Servers Documentation
  • SDS Documentation
  • Schedule In Unity
    • Extracting the game to unity
    • Creating an assetbundle
  • Creating plugins
    • How to create a plugin
    • The ClientAPI (custom content)
  • Custom Assets
  • Plugin Events
  • Texture/Material Replacement
  • Chat Messages
  • Chat Commands
  • Console Commands
  • HAPI Methods
Powered by GitBook
On this page

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.");
    }
}
PreviousChat CommandsNextHAPI Methods

Last updated 1 month ago