# 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.

```csharp
[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.");
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://schedule-i-dedicated-servers.gitbook.io/docs/console-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
