Skip to content

Commands

Generated from the plugin source at build time: the command list and default aliases from Commands/RegisterCommands.cs, usage and flags from each handler’s [CommandHelper] and [RequiresPermissions] attributes. Run any command in chat as !ban or /ban (CounterStrikeSharp turns css_ban into !ban), or as css_ban in the console.

Targets. Commands that take <#userid or name> accept # plus the user id from status, part of a player name, or a group: @all, @ct, @t, @spec, @alive, @dead, @bots, @human, @me, @!me. With DisableDangerousCommands on (the default), bans, warnings, kicks and comm penalties refuse a target that matches more than one player.

Durations. Minutes as a plain number (30), 0 for permanent, or with units: m minutes, h hours, d days, w weeks, mo months (30 days), y years, for example 1d or 2w. In game, a ban or comm penalty without a time opens the duration menu (ShowBanMenuIfNoTime).

Aliases. Every core command can be renamed or given more names in configs/plugins/CS2-SimpleAdmin/Commands.json. The plugin writes it on first start with the defaults below and adds new commands to it after an update.

Bans and warnings

css_addban

@css/banConsole and players
css_addban <steamid> [time in minutes/0 perm] [reason]

Handles banning a player by specifying their SteamID via command.

Needs at least 1 argumentSource

css_ban

@css/banConsole and players
css_ban <#userid or name> [time in minutes/0 perm] [reason]

Ban one or more valid connected players.

Needs at least 1 argumentSource

css_banip

@css/banConsole and players
css_banip <ip> [time in minutes/0 perm] [reason]

Handles banning a player by their IP address, supporting offline banning if player is not online.

Needs at least 1 argumentSource

css_unban

@css/unbanConsole and players
css_unban <#id | steamid | name | ip> [reason]

Handles unbanning players by pattern (steamid, name, IP) or by ban id (#N from css_banlist).

Needs at least 1 argumentSource

css_unwarn

@css/kickConsole and players
css_unwarn <steamid64 or online player's name or ip>

Handles removing a warning (unwarn) by a pattern string.

Needs at least 1 argumentSource

css_warn

@css/kickConsole and players
css_warn <#userid or name> [time in minutes/0 perm] [reason]

Handles warning players, supporting multiple targets and warning durations.

Needs at least 1 argumentSource

Gags, mutes and silences

css_addgag

@css/chatConsole and players
css_addgag <steamid> [time in minutes/0 perm] [reason]

Adds a gag penalty to a player specified by SteamID.

Needs at least 1 argumentSource

css_addmute

@css/chatConsole and players
css_addmute <steamid> [time in minutes/0 perm] [reason]

Adds a mute penalty to a player specified by SteamID.

Needs at least 1 argumentSource

css_addsilence

@css/chatConsole and players
css_addsilence <#userid or name> [time in minutes/0 perm] [reason]

Applying a silence penalty to a player specified by SteamID, with support for offline player penalties.

Needs at least 1 argumentSource

css_gag

@css/chatConsole and players
css_gag <#userid or name> [time in minutes/0 perm] [reason]

Applying a muted penalty to target players with optional time and reason.

Needs at least 1 argumentSource

css_mute

@css/chatConsole and players
css_mute <#userid or name> [time in minutes/0 perm] [reason]

Applying a voice mute penalty to target players with optional time and reason.

Needs at least 1 argumentSource

css_silence

@css/chatConsole and players
css_silence <#userid or name> [time in minutes/0 perm] [reason]

Issue a 'silence' penalty to a player - disables voice communication.

Needs at least 1 argumentSource

css_ungag

@css/chatConsole and players
css_ungag <steamid or name> [reason]

Handles removing a gag penalty ('ungag') of a player, either by SteamID or pattern match.

Needs at least 1 argumentSource

css_unmute

@css/chatConsole and players
css_unmute <steamid or name>

- removes mute penalty from player identified by SteamID or name.

Needs at least 1 argumentSource

css_unsilence

@css/chatConsole and players
css_unsilence <steamid or name> [reason]

Removes the silence penalty from a player, either by SteamID, name, or offline pattern.

Needs at least 1 argumentSource

Admin chat

css_asay

@css/chatConsole and players
css_asay <message>

Sends a chat message only to admins that have chat permission.

Needs at least 1 argumentSource

css_csay

@css/chatConsole and players
css_csay <message>

Broadcasts a center-screen message to all players.

Needs at least 1 argumentSource

css_cssay

@css/chatConsole and players
css_cssay <message>

Sends a custom chat message to all players with color tags processed.

Needs at least 1 argumentSource

css_hsay

@css/chatConsole and players
css_hsay <message>

Sends a HUD alert message to all players.

Needs at least 1 argumentSource

css_psay

@css/chatConsole and players
css_psay <#userid or name> <message>

Sends a private chat message from the caller to the specified target player(s).

Needs at least 2 argumentsSource

css_say

@css/chatConsole and players
css_say <message>

Sends a chat message to all players with localization prefix and color tags handled.

Needs at least 1 argumentSource

Player management

css_bring

@css/kickConsole and players
css_bring <#destination or name> [#userid or name...]

Brings targeted player(s) to the caller or specified destination player's location.

Aliases: css_tphereNeeds at least 1 argumentSource

css_prename

@css/banConsole and players
css_prename <#userid or name> <new name>

Renames permamently targeted players to a new name.

Needs at least 1 argumentSource

css_rename

@css/kickConsole and players
css_rename <#userid or name> <new name>

Renames targeted players to a new name.

Needs at least 1 argumentSource

css_slap

@css/slayConsole and players
css_slap <#userid or name> [damage]

Applies damage as a slap effect to the targeted players.

Needs at least 1 argumentSource

css_slay

@css/slayConsole and players
css_slay <#userid or name>

Forcing the targeted players to commit suicide.

Needs at least 1 argumentSource

css_team

@css/kickConsole and players
css_team <#userid or name> [<ct/tt/spec>] [-k]

Changes the team of targeted players with optional kill on switch.

Needs at least 2 argumentsSource

css_tp

@css/kickConsole and players
css_tp <#userid or name> [#userid or name]

Teleports targeted player(s) to another player's location.

Aliases: css_tpto, css_gotoNeeds at least 1 argumentSource

Admin and server

css_addadmin

@css/rootConsole and players
css_addadmin <steamid> <name> <flags/groups> <immunity> <duration>

Handles adding a new admin with specified SteamID, name, flags, immunity, and duration.

Needs at least 4 argumentsSource

css_addgroup

@css/rootConsole and players
css_addgroup <group_name> <flags> <immunity>

Adds a new admin group with specified flags and immunity settings.

Needs at least 3 argumentsSource

css_admin

@css/genericPlayers only
css_admin

Opens the admin menu for the caller.

Source

css_adminhelp

@css/genericConsole and players
css_adminhelp

Displays admin help text read from a file.

Source

css_adminvoice

@css/chatPlayers only
css_adminvoice [muteAll | unmuteAll]

Toggles the admin voice listening mode or mutes/unmutes all players' voice.

Aliases: css_listenallSource

css_banlist

@css/banConsole and players
css_banlist [pattern]

Lists active bans (steamid / name / IP) from the database, always fresh, not from the in-memory cache (which only refreshes on player connect or css_reloadbans).

Aliases: css_bansSource

css_clearall

@css/rootConsole and players
css_clearall <steamid> [reason]

Lifts every active ban, gag/mute/silence and warn for one player in a single sweep, inside one DB transaction.

Aliases: css_clearpenaltiesNeeds at least 1 argumentSource

css_cvar

@css/cvarConsole and players
css_cvar <cvar> <value>

Allows changing a console variable's value.

Needs at least 2 argumentsSource

css_deladmin

@css/rootConsole and players
css_deladmin <steamid>

Handles removing an admin's flags and groups by SteamID.

Needs at least 1 argumentSource

css_delgroup

@css/rootConsole and players
css_delgroup <group_name>

Handles removing a group by name.

Needs at least 1 argumentSource

css_disconnected

@css/kickPlayers only
css_disconnected

Displays a menu with disconnected players, allowing the caller to apply penalties like ban, mute, gag, or silence.

Aliases: css_lastSource

css_hide

@css/kickPlayers only
css_hide

Toggles player visibility on the server, hiding or revealing them.

Aliases: css_stealthSource

css_hidecomms

@css/kickPlayers only
css_hidecomms

Toggles penalty notification visibility to admins.

Source

css_history

@css/kickConsole and players
css_history <#userid or name or steamid64> [bans|gags|mutes|silences|warns]

Prints a player's full penalty history (bans, gags, mutes, silences, warns) to the caller's console.

Aliases: css_penaltyhistoryNeeds at least 1 argumentSource

css_kick

@css/kickConsole and players
css_kick <#userid or name> [reason]

Issues a kick to one or multiple players specified in the command arguments.

Needs at least 1 argumentSource

css_map

@css/changemapConsole and players
css_map <mapname>

Changes the current map to the specified map name or workshop map ID.

Aliases: css_changemapNeeds at least 1 argumentSource

css_penalties

everyonePlayers only
css_penalties [#userid or name]

Shows active penalties and warns for the caller or specified player.

Aliases: css_mypenalties, css_commsSource

css_players

@css/genericConsole and players
css_players

Lists players currently connected to the server with options to output JSON or filter duplicate IPs.

Source

css_pluginsmanager

@css/rootPlayers only
css_pluginsmanager

Opens plugin manager menu for the caller with options to load or unload plugins.

Aliases: css_pluginmanagerSource

css_rcon

@css/rconConsole and players
css_rcon <command>

Executes an RCON command on the server.

Needs at least 1 argumentSource

css_reloadadmins

@css/rootConsole and players
css_reloadadmins

Reloads admin and group data from database and json files.

Source

css_rr

@css/genericConsole and players
css_rr

Restarts the game.

Aliases: css_rg, css_restart, css_restartgameSource

css_sqlbackup

@css/rootConsole and players
css_sqlbackup

Backs up the SQLite database to a timestamped file under {ModuleDirectory}/backups using VACUUM INTO, then prunes older backups beyond SqliteBackupRetainCount.

Source

css_warns

@css/kickPlayers only
css_warns <#userid or name>

Displays the warning menu for a player specified by a command argument, showing active and past warns with options to remove them.

Needs at least 1 argumentSource

css_who

@css/genericConsole and players
css_who <#userid or name>

Displays detailed information about target players, including admin groups, permissions, and penalties.

Needs at least 1 argumentSource

css_wsmap

@css/changemapConsole and players
css_wsmap <name or id>

Changes the current map to a workshop map specified by name or ID.

Aliases: css_changewsmap, css_workshopNeeds at least 1 argumentSource

Votes

css_vote

@css/genericConsole and players
css_vote <question> [... options ...]

Creates voting menu for players, and collects answers.

Needs at least 2 argumentsSource

Fun commands (module)

Registered by the Fun Commands module, which ships in the release zip. The names come from the module's config, so they can be changed there.

css_freeze

@css/slayConsole and players
css_freeze <#userid or name> [duration]

Freeze player.

Needs at least 1 argumentSource

css_give

@css/cheatsConsole and players
css_give <#userid or name> <weapon>

Give weapon.

Needs at least 2 argumentsSource

css_god

@css/cheatsConsole and players
css_god <#userid or name>

Enable god mode.

Needs at least 1 argumentSource

css_gravity

@css/slayConsole and players
css_gravity <#userid or name> <gravity>

Set gravity.

Needs at least 2 argumentsSource

css_hp

@css/slayConsole and players
css_hp <#userid or name> <hp>

Set HP.

Needs at least 2 argumentsSource

css_money

@css/slayConsole and players
css_money <#userid or name> <money>

Set money.

Needs at least 2 argumentsSource

css_noclip

@css/cheatsConsole and players
css_noclip <#userid or name>

Enable noclip.

Needs at least 1 argumentSource

css_resize

@css/slayConsole and players
css_resize <#userid or name> <size>

Resize player.

Needs at least 2 argumentsSource

css_respawn

@css/cheatsConsole and players
css_respawn <#userid or name>

Respawn player.

Needs at least 1 argumentSource

css_speed

@css/slayConsole and players
css_speed <#userid or name> <speed>

Set speed.

Needs at least 2 argumentsSource

css_strip

@css/slayConsole and players
css_strip <#userid or name>

Strip weapons.

Needs at least 1 argumentSource

css_unfreeze

@css/slayConsole and players
css_unfreeze <#userid or name>

Unfreeze player.

Needs at least 1 argumentSource

By permission flag

The flag each command checks (its [RequiresPermissions] attribute). Flags and permission overrides come from CounterStrikeSharp's admin system, so a server can move a command to another flag in configs/admin_overrides.json.

FlagCommands
no flagcss_penalties
@css/bancss_addban css_ban css_banip css_banlist css_prename
@css/changemapcss_map css_wsmap
@css/chatcss_addgag css_addmute css_addsilence css_adminvoice css_asay css_csay css_cssay css_gag css_hsay css_mute css_psay css_say css_silence css_ungag css_unmute css_unsilence
@css/cheatscss_give css_god css_noclip css_respawn
@css/cvarcss_cvar
@css/genericcss_admin css_adminhelp css_players css_rr css_vote css_who
@css/kickcss_bring css_disconnected css_hide css_hidecomms css_history css_kick css_rename css_team css_tp css_unwarn css_warn css_warns
@css/rconcss_rcon
@css/rootcss_addadmin css_addgroup css_clearall css_deladmin css_delgroup css_pluginsmanager css_reloadadmins css_reloadbans css_sqlbackup
@css/slaycss_freeze css_gravity css_hp css_money css_resize css_slap css_slay css_speed css_strip css_unfreeze
@css/unbancss_unban