css_addban
@css/banConsole and playerscss_addban <steamid> [time in minutes/0 perm] [reason]Handles banning a player by specifying their SteamID via command.
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.
css_addbancss_addban <steamid> [time in minutes/0 perm] [reason]Handles banning a player by specifying their SteamID via command.
css_bancss_ban <#userid or name> [time in minutes/0 perm] [reason]Ban one or more valid connected players.
css_banipcss_banip <ip> [time in minutes/0 perm] [reason]Handles banning a player by their IP address, supporting offline banning if player is not online.
css_unbancss_unban <#id | steamid | name | ip> [reason]Handles unbanning players by pattern (steamid, name, IP) or by ban id (#N from css_banlist).
css_unwarncss_unwarn <steamid64 or online player's name or ip>Handles removing a warning (unwarn) by a pattern string.
css_warncss_warn <#userid or name> [time in minutes/0 perm] [reason]Handles warning players, supporting multiple targets and warning durations.
css_addgagcss_addgag <steamid> [time in minutes/0 perm] [reason]Adds a gag penalty to a player specified by SteamID.
css_addmutecss_addmute <steamid> [time in minutes/0 perm] [reason]Adds a mute penalty to a player specified by SteamID.
css_addsilencecss_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.
css_gagcss_gag <#userid or name> [time in minutes/0 perm] [reason]Applying a muted penalty to target players with optional time and reason.
css_mutecss_mute <#userid or name> [time in minutes/0 perm] [reason]Applying a voice mute penalty to target players with optional time and reason.
css_silencecss_silence <#userid or name> [time in minutes/0 perm] [reason]Issue a 'silence' penalty to a player - disables voice communication.
css_ungagcss_ungag <steamid or name> [reason]Handles removing a gag penalty ('ungag') of a player, either by SteamID or pattern match.
css_unmutecss_unmute <steamid or name>- removes mute penalty from player identified by SteamID or name.
css_unsilencecss_unsilence <steamid or name> [reason]Removes the silence penalty from a player, either by SteamID, name, or offline pattern.
css_asaycss_asay <message>Sends a chat message only to admins that have chat permission.
css_csaycss_csay <message>Broadcasts a center-screen message to all players.
css_cssaycss_cssay <message>Sends a custom chat message to all players with color tags processed.
css_hsaycss_hsay <message>Sends a HUD alert message to all players.
css_psaycss_psay <#userid or name> <message>Sends a private chat message from the caller to the specified target player(s).
css_saycss_say <message>Sends a chat message to all players with localization prefix and color tags handled.
css_bringcss_bring <#destination or name> [#userid or name...]Brings targeted player(s) to the caller or specified destination player's location.
css_prenamecss_prename <#userid or name> <new name>Renames permamently targeted players to a new name.
css_renamecss_rename <#userid or name> <new name>Renames targeted players to a new name.
css_slapcss_slap <#userid or name> [damage]Applies damage as a slap effect to the targeted players.
css_slaycss_slay <#userid or name>Forcing the targeted players to commit suicide.
css_teamcss_team <#userid or name> [<ct/tt/spec>] [-k]Changes the team of targeted players with optional kill on switch.
css_tpcss_tp <#userid or name> [#userid or name]Teleports targeted player(s) to another player's location.
css_addadmincss_addadmin <steamid> <name> <flags/groups> <immunity> <duration>Handles adding a new admin with specified SteamID, name, flags, immunity, and duration.
css_addgroupcss_addgroup <group_name> <flags> <immunity>Adds a new admin group with specified flags and immunity settings.
css_admincss_adminOpens the admin menu for the caller.
css_adminhelpcss_adminhelpDisplays admin help text read from a file.
css_adminvoicecss_adminvoice [muteAll | unmuteAll]Toggles the admin voice listening mode or mutes/unmutes all players' voice.
css_banlistcss_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).
css_clearallcss_clearall <steamid> [reason]Lifts every active ban, gag/mute/silence and warn for one player in a single sweep, inside one DB transaction.
css_cvarcss_cvar <cvar> <value>Allows changing a console variable's value.
css_deladmincss_deladmin <steamid>Handles removing an admin's flags and groups by SteamID.
css_delgroupcss_delgroup <group_name>Handles removing a group by name.
css_disconnectedcss_disconnectedDisplays a menu with disconnected players, allowing the caller to apply penalties like ban, mute, gag, or silence.
css_hidecss_hideToggles player visibility on the server, hiding or revealing them.
css_hidecommscss_hidecommsToggles penalty notification visibility to admins.
css_historycss_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.
css_kickcss_kick <#userid or name> [reason]Issues a kick to one or multiple players specified in the command arguments.
css_mapcss_map <mapname>Changes the current map to the specified map name or workshop map ID.
css_penaltiescss_penalties [#userid or name]Shows active penalties and warns for the caller or specified player.
css_playerscss_playersLists players currently connected to the server with options to output JSON or filter duplicate IPs.
css_pluginsmanagercss_pluginsmanagerOpens plugin manager menu for the caller with options to load or unload plugins.
css_rconcss_rcon <command>Executes an RCON command on the server.
css_reloadadminscss_reloadadminsReloads admin and group data from database and json files.
css_reloadbanscss_reloadbansReloads bans cache.
css_rrcss_rrRestarts the game.
css_sqlbackupcss_sqlbackupBacks up the SQLite database to a timestamped file under {ModuleDirectory}/backups using VACUUM INTO, then prunes older backups beyond SqliteBackupRetainCount.
css_warnscss_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.
css_whocss_who <#userid or name>Displays detailed information about target players, including admin groups, permissions, and penalties.
css_wsmapcss_wsmap <name or id>Changes the current map to a workshop map specified by name or ID.
css_votecss_vote <question> [... options ...]Creates voting menu for players, and collects answers.
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_freezecss_freeze <#userid or name> [duration]Freeze player.
css_givecss_give <#userid or name> <weapon>Give weapon.
css_godcss_god <#userid or name>Enable god mode.
css_gravitycss_gravity <#userid or name> <gravity>Set gravity.
css_hpcss_hp <#userid or name> <hp>Set HP.
css_moneycss_money <#userid or name> <money>Set money.
css_noclipcss_noclip <#userid or name>Enable noclip.
css_resizecss_resize <#userid or name> <size>Resize player.
css_respawncss_respawn <#userid or name>Respawn player.
css_speedcss_speed <#userid or name> <speed>Set speed.
css_stripcss_strip <#userid or name>Strip weapons.
css_unfreezecss_unfreeze <#userid or name>Unfreeze player.
No command matches. Try a shorter word or another 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.
| Flag | Commands |
|---|---|
| no flag | css_penalties |
| @css/ban | css_addban css_ban css_banip css_banlist css_prename |
| @css/changemap | css_map css_wsmap |
| @css/chat | css_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/cheats | css_give css_god css_noclip css_respawn |
| @css/cvar | css_cvar |
| @css/generic | css_admin css_adminhelp css_players css_rr css_vote css_who |
| @css/kick | css_bring css_disconnected css_hide css_hidecomms css_history css_kick css_rename css_team css_tp css_unwarn css_warn css_warns |
| @css/rcon | css_rcon |
| @css/root | css_addadmin css_addgroup css_clearall css_deladmin css_delgroup css_pluginsmanager css_reloadadmins css_reloadbans css_sqlbackup |
| @css/slay | css_freeze css_gravity css_hp css_money css_resize css_slap css_slay css_speed css_strip css_unfreeze |
| @css/unban | css_unban |