diff options
author | FearFree <fearfree@cubetown.net> | 2014-07-12 17:37:25 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-07-12 17:40:14 +0100 |
commit | 6d8d3a486f76921433067c77589ca09b598979fa (patch) | |
tree | 95b66e861679acebef74afe6afd1b5768c91c0af /Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java | |
parent | 394ea6f172e211853a5cbf6fdb732fc84b1d4c04 (diff) | |
download | Essentials-6d8d3a486f76921433067c77589ca09b598979fa.tar Essentials-6d8d3a486f76921433067c77589ca09b598979fa.tar.gz Essentials-6d8d3a486f76921433067c77589ca09b598979fa.tar.lz Essentials-6d8d3a486f76921433067c77589ca09b598979fa.tar.xz Essentials-6d8d3a486f76921433067c77589ca09b598979fa.zip |
Update to new ban method.
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java b/Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java index 1d79c94e0..b7477f7e7 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java @@ -6,6 +6,8 @@ import static com.earth2me.essentials.I18n.tl; import com.earth2me.essentials.User; import com.earth2me.essentials.utils.FormatUtil; import java.util.logging.Level; +import org.bukkit.BanList; +import org.bukkit.Bukkit; import org.bukkit.Server; @@ -46,8 +48,9 @@ public class Commandunbanip extends EssentialsCommand { throw new PlayerNotFoundException(); } + - ess.getServer().unbanIP(ipAddress); + Bukkit.getBanList(BanList.Type.IP).pardon(ipAddress); final String senderName = sender.isPlayer() ? sender.getPlayer().getDisplayName() : Console.NAME; server.getLogger().log(Level.INFO, tl("playerUnbanIpAddress", senderName, ipAddress)); |