summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java
diff options
context:
space:
mode:
authorFearFree <fearfree@cubetown.net>2014-07-12 17:37:25 +0100
committerKHobbits <rob@khobbits.co.uk>2014-07-12 17:40:14 +0100
commit6d8d3a486f76921433067c77589ca09b598979fa (patch)
tree95b66e861679acebef74afe6afd1b5768c91c0af /Essentials/src/com/earth2me/essentials/commands/Commandunbanip.java
parent394ea6f172e211853a5cbf6fdb732fc84b1d4c04 (diff)
downloadEssentials-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.java5
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));