diff options
Diffstat (limited to 'src/main/java/org/bukkit/command/defaults/PardonCommand.java')
-rw-r--r-- | src/main/java/org/bukkit/command/defaults/PardonCommand.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/command/defaults/PardonCommand.java b/src/main/java/org/bukkit/command/defaults/PardonCommand.java index 97c65c5e..82c7a954 100644 --- a/src/main/java/org/bukkit/command/defaults/PardonCommand.java +++ b/src/main/java/org/bukkit/command/defaults/PardonCommand.java @@ -30,8 +30,7 @@ public class PardonCommand extends VanillaCommand { return false; } - String uuid = sender.getServer().getOfflinePlayer(args[0]).getUniqueId().toString(); - Bukkit.getBanList(BanList.Type.UUID).pardon(uuid); + Bukkit.getBanList(BanList.Type.NAME).pardon(args[0]); Command.broadcastCommandMessage(sender, "Pardoned " + args[0]); return true; } |