ModerationJava
/ban-ip
Ban an IP address from the server.
Syntax
Parameters
- target
- player name or IP
- Online player name or a raw IP address.
- reasonoptional
- string
- Reason shown to the banned address.
Examples
Ban the IP of an online player.
Ban a raw IP address.
Permission level
/ban-ip requires Server admin (op level 3). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.