Minecraft:Commands/ban: Difference between revisions
More actions
imported>CrafterShapeless No edit summary |
Sync: updated from Minecraft |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
{{Exclusive|java}} | {{Exclusive|java}} | ||
These commands | These commands add a single or multiple players into the [[Minecraft:server]]'s ban list (or blacklist) by their game profile or IP address. A ban list is a list of players or IP addresses that are not allowed to connect to the server; this list supersede any whitelisting in place. | ||
To remove players from the ban list, operator may use {{cmd|pardon}} or manually removing it from the [[Minecraft:Server.jar#Content|banned-players.json]]. | |||
== ban == | == ban == | ||
| Line 56: | Line 58: | ||
: Specifies the IP address to be added to the blacklist. Can also be a name of an online player, which represents the IP of that player. | : Specifies the IP address to be added to the blacklist. Can also be a name of an online player, which represents the IP of that player. | ||
: {{arg desc|je=string|type=word}} | : {{arg desc|je=string|type=word}} | ||
: Since this, it is impossible to ban an IPv6 address in this way.<ref>{{Bug|MC-97885||/ban-ip doesn't work with IPv6 addresses}}</ref> | |||
{{argument|reason|message}} | {{argument|reason|message}} | ||
| Line 125: | Line 128: | ||
== See also == | == See also == | ||
* [[Minecraft:Commands/whitelist]] | * [[Minecraft:Commands/whitelist]] | ||
== References == | |||
{{reflist}} | |||
== Navigation == | == Navigation == | ||
Latest revision as of 11:05, 7 May 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Template:Redirect Template:Exclusive
These commands add a single or multiple players into the Minecraft:server's ban list (or blacklist) by their game profile or IP address. A ban list is a list of players or IP addresses that are not allowed to connect to the server; this list supersede any whitelisting in place.
To remove players from the ban list, operator may use Template:Cmd or manually removing it from the banned-players.json.
ban
Adds the player profile(s) into the server blacklist, which prevents anyone from connecting to the server with uuids of these profiles.
Syntax
ban <targets> [<reason>]
Arguments
- Specifies the player profile(s) to be added to the blacklist.
- Template:Arg desc
- Message to display to the banned player, to other Minecraft:operators, and in the server logs. If unspecified, defaults to
Banned by an operator. - Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table
ban-ip
Adds an IP address to the blacklist. Adds the narrowly-specified address or address of the named online player into the server blacklist, preventing anyone from connecting to the server from that address.
Syntax
ban-ip <target> [<reason>]
Arguments
- Specifies the IP address to be added to the blacklist. Can also be a name of an online player, which represents the IP of that player.
- Template:Arg desc
- Since this, it is impossible to ban an IPv6 address in this way.<ref>Template:Bug</ref>
- Message to display to the banned player, to other Minecraft:operators, and in the server logs. If unspecified, defaults to
Banned by an operator. - Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table
banlist
Displays the server's blacklist.
Syntax
banlist [ips|players]
Result
Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table
banip
Template:Outdated feature Template:Infobox command
Bans a player by IP number. Cannot be undone in-game; Template:Cd must manually be changed.
The Classic equivalent of Template:Cmd.
Syntax
banip (<address>|<name>) [<reason>]
History
See also
References
Minecraft:de:Befehl/ban Minecraft:es:Comandos/ban Minecraft:ja:コマンド/ban Minecraft:pt:Comandos/ban Minecraft:ru:Команды консоли/ban Minecraft:uk:Команди консолі/ban Minecraft:zh:命令/ban