# /banuser

Bans a player, and their IP if you add -ip. The game's help: Ban a user. Add a -ip to also ban the IP. Add a -r "reason" to specify a reason for the ban. Use: /banuser "username" -ip -r "reason". For example: /banuser "rj" -ip -r "spawn kill"

Source page: https://zomboiddb.com/commands/banuser/

Command

`/banuser`

Who can use it

moderator and above

Capability

`BanUnbanUser`

Single player

No, it needs a server

## What you type

`/banuser "username"`

`/banuser "username" -ip`

`/banuser "username" -r "reason"`

`/banuser "username" -ip -r "reason"`

## Examples

- `/banuser "rj"` bans rj
- `/banuser "rj" -ip -r "spawn kill"` bans rj and the IP, with a reason

rj is the name the game's own help uses. Put your player's name in its place.

[Build this line with your own values](https://zomboiddb.com/commands/?cmd=banuser#builder)

## Which access levels can use it

| Capability | banned | user | priority | observer | gm | moderator | admin |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `BanUnbanUser` | | | | | | yes | yes |

These are the roles the game makes for a new server. An admin can change them in the admin panel. [What each level may do](https://zomboiddb.com/access-levels/).

## More commands like this one

[/adduser](https://zomboiddb.com/commands/adduser/) [/addsteamid](https://zomboiddb.com/commands/addsteamid/) [/removesteamid](https://zomboiddb.com/commands/removesteamid/) [/grantadmin](https://zomboiddb.com/commands/grantadmin/) [/removeadmin](https://zomboiddb.com/commands/removeadmin/) [/kickuser](https://zomboiddb.com/commands/kickuser/) [/banid](https://zomboiddb.com/commands/banid/) [/banip](https://zomboiddb.com/commands/banip/) [/unbanuser](https://zomboiddb.com/commands/unbanuser/) [/unbanid](https://zomboiddb.com/commands/unbanid/) [/unbanip](https://zomboiddb.com/commands/unbanip/) [/removeuserfromwhitelist](https://zomboiddb.com/commands/removeuserfromwhitelist/) [/voiceban](https://zomboiddb.com/commands/voiceban/) [/players](https://zomboiddb.com/commands/players/) [/setaccesslevel](https://zomboiddb.com/commands/setaccesslevel/) [/setpassword](https://zomboiddb.com/commands/setpassword/) [/removemapsymbolsforuser](https://zomboiddb.com/commands/removemapsymbolsforuser/)
