Ban Commands

Commands for managing player bans.

Ban Player

Ban a player currently on the server.

css_ban <#userid or name> [time in minutes/0 perm] [reason]

Permission: @css/ban

Examples:

css_ban @all 60 "Timeout for everyone"
css_ban #123 1440 "Hacking - 1 day ban"
css_ban PlayerName 0 "Permanent ban for cheating"
css_ban @ct 30 "CT team timeout"

Notes:

---

Add Ban (Offline Player)

Ban a player by SteamID even if they're not online.

css_addban <steamid> [time in minutes/0 perm] [reason]

Permission: @css/ban

Examples:

css_addban STEAM_1:0:12345678 1440 "Ban evasion"
css_addban 76561198012345678 10080 "Hacking - 7 day ban"
css_addban STEAM_1:1:87654321 0 "Permanent ban"

Supported SteamID formats:

---

Ban IP Address

Ban an IP address.

css_banip <ip> [time in minutes/0 perm] [reason]

Permission: @css/ban

Examples:

css_banip 192.168.1.100 1440 "Ban evasion attempt"
css_banip 10.0.0.5 0 "Persistent troublemaker"

Notes:

---

Unban Player

Remove a ban from a player.

css_unban <steamid or name or ip> [reason]

Permission: @css/unban

Examples:

css_unban 76561198012345678 "Appeal accepted"
css_unban STEAM_1:0:12345678 "Ban lifted"
css_unban 192.168.1.100 "Wrong person banned"
css_unban PlayerName "Mistake"

Notes:

---

Warn Player

Issue a warning to a player.

css_warn <#userid or name> [reason]

Permission: @css/kick

Examples:

css_warn #123 "Mic spam"
css_warn PlayerName "Language"
css_warn @all "Final warning"

Notes:

Warning Threshold Configuration:

"WarnThreshold": {
  "3": "css_addban STEAMID64 60 \"3 warnings\"",
  "4": "css_ban #USERID 120 \"4 warnings\""
}

---

Unwarn Player

Remove a warning from a player.

css_unwarn <steamid or name>

Permission: @css/kick

Examples:

css_unwarn 76561198012345678
css_unwarn PlayerName

Notes:

---

Permission Requirements

CommandRequired PermissionDescription
css_ban@css/banBan online players
css_addban@css/banBan offline players by SteamID
css_banip@css/banBan IP addresses
css_unban@css/unbanRemove bans
css_warn@css/kickIssue warnings
css_unwarn@css/kickRemove warnings

Ban Types

Configure ban behavior in CS2-SimpleAdmin.json:

"BanType": 1

Options:

Time Durations

Common time values:

DurationMinutesDescription
1 minute1Very short timeout
5 minutes5Short timeout
15 minutes15Medium timeout
1 hour60Standard timeout
1 day1440Daily ban
1 week10080Weekly ban
2 weeks20160Bi-weekly ban
1 month43200Monthly ban
Permanent0Never expires

Player Targeting

All ban commands support advanced targeting:

Best Practices

Banning

  1. Always provide a reason - Helps with appeals and record keeping
  2. Use appropriate durations - Don't permaban for minor offenses
  3. Check ban history - Use css_who to see if player has priors
  4. Consider warnings first - Give players a chance to improve

Warning System

  1. Be consistent - Use warnings for minor offenses
  2. Configure thresholds - Set up auto-escalation in config
  3. Communicate clearly - Let players know why they're warned
  4. Review regularly - Check warning history with css_warns

Multi-Account Detection

When CheckMultiAccountsByIp is enabled:

Troubleshooting

Ban doesn't work

Check:

Player rejoins after ban

Check:

Warning threshold not working

Check: