/pardon

From Minecraft Wiki
Jump to navigation Jump to search
This feature is exclusive to Java Edition.
 

These commands remove a single or multiple players from the ban list by their game profile or IP address.

To add players into the ban list, operator may use /ban or manually adding it into the banned-players.json.

pardon

[edit | edit source]
/pardon
Permission level
required
3
Restrictions Dedicated server

Removes profiles from the ban list, allowing anyone to connect into the server with UUIDs of these profiles.

Syntax

[edit | edit source]
pardon <targets>

Arguments

[edit | edit source]

<targets>: game_profile

Specifies the player profile(s) to remove from the ban list.
Specifies one or more game profiles (player profiles). Must be a player name (should be a real one if the server is in online mode) or a player-type target selector.

Result

[edit | edit source]

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
Target selector fails to resolve to one or more online players. Failed
All specified player profiles is not banned.
OtherwiseSuccessful

Output

[edit | edit source]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn failN/A00
On successN/A1the number of player profiles that is removed from ban list.

pardon-ip

[edit | edit source]
/pardon-ip
Permission level
required
3
Restrictions Dedicated server

Removes an IP address from the ban list, allowing anyone to connect to the server from that IP address.

Syntax

[edit | edit source]
pardon-ip <target>

Arguments

[edit | edit source]

<target>: string

Specifies the IP address to remove from the ban list. Should be a valid IP address.
Must be a string. And it must be in a single word (Allowed characters include: -, +, ., _, A-Z, a-z, and 0-9).

Result

[edit | edit source]

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
<string> fails to resolve as an IP. Failed
The specified IP is not banned.
OtherwiseSuccessful

Output

[edit | edit source]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn fail000
On success111

History

[edit | edit source]
Java Edition Alpha
v1.0.16Added /pardon and /pardon-ip.
[edit | edit source]