Administration and commands
Roles and passwords
A player becomes staff with /login <role> <password> in ngspades-client’s chat. There are five roles, each with a password in [passwords]. A higher role holds the permissions of the lower ones.
| Role | Config key | Bit | Typically for |
|---|---|---|---|
trusted | trusted | 1 | Regular players you trust; the lowest staff level. Few commands need it alone. |
guard | guard | 2 | Helpers: mute, kick, ban, /tb, /tk. |
mod | moderator | 4 | Moderators. Note the name: /login mod ..., but the config key is moderator. |
admin | admin | 8 | Administrators: maps, teleports, the sky, crates, perks, /reset. |
manager | manager | 16 | The owner: everything, including /shutdown. |
An empty password turns that role off. The server warns at every start while a password is still changeme.... A plugin may ask for more than the password before the role is held (on_login, a second factor). /logout drops the role.
/login. A dedicated server always asks for a login. The console and the remote console run every command with all permissions.Using commands
In ngspades-client, type the command in the chat with a /. Commands are lower-cased before they run (arguments keep their case). Arguments are separated by spaces or tabs, and a pair of quotes wraps one that contains spaces. A player is named by #<id> (/kick #3; the id is on the scoreboard and in /bots). A line is limited to 1000 characters; the server flood-limits chat commands for non-staff.
On the server’s own console (a TTY), the prompt Console> takes the same commands, with or without the slash. The console is off when the server runs without a terminal (a service, Docker without -it); use the remote console below.
/kick #3
/ban #3 60 spawn killing a ban of 60 minutes with a reason
/pban #3 permanent
/map Normandie
/say The server restarts in 5 minutes
/addbot 4 blueThe ban commands: /ban #id [minutes] [reason] (0 or none: for good), and fixed lengths /hban (6 hours), /dban (a day), /wban (a week), /mban (a month), /pban (for good). /unban <ip>, /undoban, /banrange and /unbanrange complete them. Bans are kept by address in Bans.json in the data folder (an IPv6 player by its /64), and the kicked player is told. game.ban in a plugin writes the same list.
Every command
The table is generated from the server’s command registry. Who is the lowest role that may use it.
| Command | Who | What it does |
|---|---|---|
/addbot | everyone | Adds bots to the server. Usage: addbot [n] [blue|green] |
/admin | everyone | Sends a message to all online admins. |
/adminmute | guard or higher | Mutes or unmutes player from /admin usage |
/autofill | everyone | Keeps the given player count as bots. Usage: autofill <n> |
/ban | guard or higher | Puts specified IP into ban list |
/banrange | guard or higher | Bans specified IP range |
/botfill | everyone | Tops both teams up to n players each. Usage: botfill <n> |
/bots | everyone | Shows bot, human and autofill counts |
/classes | guard or higher | Turns the classes on or off (the zombie mode’s). Usage: classes [on|off] |
/client | everyone | Shows players client info |
/clin | everyone | Shows players client info |
/colinfo | everyone | debug: dump a map column |
/crate | admin or higher | Drops a supply crate on a player (yourself without one). Usage: crate <ammo|health> [player] |
/dban | guard or higher | Bans specified player for a day |
/endmatch | admin or higher | Ends the match now (the summary, then the next map). Usage: endmatch [1|2]: that team wins |
/extend | admin or higher | Adds minutes to a timed match. Usage: extend <minutes> |
/hban | guard or higher | Bans specified player for 6 hours |
/help | everyone | Shows commands and their description |
/intel | everyone | Shows info about intel |
/inv | guard or higher | Makes you go invisible |
/kick | guard or higher | Kicks specified player from the server |
/kickbot | everyone | Removes the bot with the given id. Usage: kickbot <id> |
/kickbots | everyone | Removes every bot from the server |
/kill | everyone | Kills player who sent it or player specified in argument |
/login | everyone | Login command. First argument is a role. Second password |
/logout | any logged-in role | Logs out logged in player |
/map | admin or higher | Loads a map now. Usage: map <Name> |
/mban | guard or higher | Bans specified player for a month |
/mute | guard or higher | Mutes or unmutes specified player |
/nextmap | admin or higher | Loads the next map of the rotation |
/night | admin or higher | Night or day for the 0.75 clients (Daytime and Weather). Usage: night [on|off] |
/outfit | admin or higher | How a player or a team looks (1.0). Usage: outfit <player> <0..255> [colour] | outfit team <1|2> <0..254> |
/pban | guard or higher | Permanently bans a specified player |
/perk | guard or higher | Grants a perk for a test. Usage: perk <mg|sentry|jetpack|landmine|dynamite> [player] |
/pm | everyone | Private message to specified player |
/profile | guard or higher | Shows the server’s profile (1.0 or 0.75), config, data folder, ports and masters |
/ratio | everyone | Shows yours or requested player ratio |
/reset | admin or higher | Resets server and loads next map |
/restart | admin or higher | Reloads the current map |
/say | guard or higher | Send message to everyone as the server |
/score | everyone | Shows the teams’ score and the match limit |
/server | everyone | Shows info about the server |
/shutdown | manager only | Shutdown the server |
/sky | admin or higher | The time of day and the weather (1.0). Usage: sky [time <hh:mm|day|night|dawn|dusk> | rate <n> | weather <kind> [0..100] | moon <0..100>] |
/stats | everyone | Shows your match stats, or a player’s. Usage: stats [player] |
/tb | guard or higher | Toggles ability to build for everyone or specified player |
/time | everyone | Shows how long this match has been running |
/tk | guard or higher | Toggles ability to kill for everyone or specified player |
/tp | admin or higher | Teleports specified player to another specified player |
/tpc | admin or higher | Teleports to specified cordinates |
/ttk | guard or higher | Toggles ability to team kill for everyone or specified player |
/unban | guard or higher | Unbans specified IP |
/unbanrange | guard or higher | Unbans specified IP range |
/undoban | guard or higher | Reverts the last ban |
/ups | everyone | Sets UPS of player to requested ammount. Range: 1-300 |
/wban | guard or higher | Bans specified player for a week |
game.command) appear in /help after the server’s own, with the role the plugin set. A plugin cannot override a server command: a name already taken is refused (EVT plugin action=command_refused why=taken). The shipped server_tools plugin adds /spawn, /spawn crate and /goto <x> <y> for admins (protocol 1.0 only).Two registered commands are for diagnosis: /colinfo dumps a map column, /profile (guard or higher) shows the profile, config path, data folder, ports and masters, which it keeps from other players because it names the machine’s folders.
The remote console
A TCP connection that runs the console’s commands, for a tool that manages the server: sadctl (which also offers an MCP endpoint for AI agents), a monitor, a script. Nothing else is in the server: no HTTP, no JSON-RPC, no tokens.
[rcon]
enabled = true
bind = "127.0.0.1"
port = 32890 # the 0.75 profile's config uses 32900
password = "at least sixteen characters"SP_RCON_PASSWORD (which also turns it on), SP_RCON_PORT and SP_RCON_BIND win over the file. With a shorter password the server logs a warning and leaves it off. It is not built on Windows.
bind on 127.0.0.1 and, from another machine, use an SSH tunnel: ssh -L 32890:127.0.0.1:32890 host.The wire
Text, one line at a time (1000 bytes at most).
- Connect and send
auth <password>. The answer isok, ordenied(after a second’s pause) and the connection closes. - Send one command per line, with or without the leading
/(addbot 4 blue,/kick #3,/say hello). The answer is what the command printed (up to 64 KB), followed by an EOT byte (0x04) and a newline. A command that prints nothing answers(done, nothing printed). - The line
statusis the exception: the answer is the server’s state as one JSON object (name, map, mode, profile, uptime, score, limits, and every player with id, team, bot, alive, hp, kills, deaths, assists, captures, score, ip and ping).
/shutdown, /login and /logout are refused. A quiet connection is closed after a minute. One client is served at a time; a line runs on the server’s tick (5 s at most to answer). Every line is written to the admin audit (actor=rcon) and the event log (EVT rcon).
# a try, with netcat
(printf 'auth %s\nstatus\n' "$PW"; sleep 1) | nc 127.0.0.1 32890The admin audit
Every command, host command and remote console line is appended to logs/admin.log in the data folder (and to the event log as EVT admin). The rcon password is never written. [audit] enabled = false keeps only the event-log line; [audit] file moves it.
Host commands (the bots menu)
A player hosting from ngspades-client changes bots, their difficulty and autofill from the pause menu. On protocol 1.0 this travels as host <command> <arg1> <arg2> GenericCommands, and the server pushes host-status and host-bots back. The contract (ids, layout, semantics) is in docs/host-commands.md an owner does not need it, the console commands above do the same.
Conduct, anti-cheat and flood limits
Keep a public server healthy with the sections [conduct] (AFK kicks, team-grief points; staff and a listen host are exempt) and [anticheat] (counters and a rate-limited log, no ban; kick_on_protocol_violation for hard violations). The flood limits (per player: 400 packets a second, one chat line a second with a burst of 5, 20 commands a second) and the per-address connection guard ([net] max_connections_per_ip) are described in Network.
Match control from the keyboard
/endmatch [1|2] | Ends the match now with the score as it is, or with that team winning; the summary runs, then the next map. |
/extend <minutes> | Adds minutes to a match that has a time limit. |
/nextmap, /restart, /reset | Load the next map, reload this one, or reset (the same family). |
/map <Name> | Load a map now; downloads one that is not installed. |
/classes on|off | Turn the classes on or off for modes that have the option. |
/sky time ..., /night on|off | The time of day and the weather (1.0), or day and night for 0.75 clients. |
/perk <name> [player], /crate <ammo|health> [player] | Grant a perk, or drop a supply crate: for tests and rewards. |