diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandbanip.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandbanip.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java b/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java index fa0dcb449..f538ba4ae 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java @@ -62,7 +62,7 @@ public class Commandbanip extends EssentialsCommand banReason = tl("defaultBanReason"); } - Bukkit.getBanList(BanList.Type.IP).addBan(ipAddress, banReason, null, senderName); + ess.getServer().getBanList(BanList.Type.IP).addBan(ipAddress, banReason, null, senderName); server.getLogger().log(Level.INFO, tl("playerBanIpAddress", senderName, ipAddress, banReason)); ess.broadcastMessage("essentials.ban.notify", tl("playerBanIpAddress", senderName, ipAddress, banReason)); |