/pardon
< Commands
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 |
{
"title": "<code>/pardon</code>",
"rows": [
{
"field": "3",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "Dedicated server<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
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]
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The 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. | ||
| Otherwise | Successful |
Output
[edit | edit source]
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On fail | N/A | 0 | 0 |
| On success | N/A | 1 | the number of player profiles that is removed from ban list. |
pardon-ip
[edit | edit source]/pardon-ip| Permission level required |
3 |
|---|---|
| Restrictions | Dedicated server |
{
"title": "<code>/pardon-ip</code>",
"rows": [
{
"field": "3",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "Dedicated server<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
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, and0-9).
Result
[edit | edit source]
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The 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. | ||
| Otherwise | Successful |
Output
[edit | edit source]
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On fail | 0 | 0 | 0 |
| On success | 1 | 1 | 1 |
History
[edit | edit source]| Java Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v1.0.16 | Added /pardon and /pardon-ip. | ||||||