summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandbanip.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandbanip.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java b/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java
index 903b2cd93..4c7f6ad49 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandbanip.java
@@ -3,7 +3,6 @@ package com.earth2me.essentials.commands;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.CraftServer;
-import com.earth2me.essentials.Essentials;
public class Commandbanip extends EssentialsCommand
@@ -14,17 +13,16 @@ public class Commandbanip extends EssentialsCommand
}
@Override
- public void run(Server server, Essentials parent, CommandSender sender, String commandLabel, String[] args) throws Exception
+ public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 1)
{
- sender.sendMessage("Usage: /" + commandLabel + " [address]");
- return;
+ throw new NotEnoughArgumentsException();
}
((CraftServer)server).getHandle().c(args[0]);
sender.sendMessage("ยง7Banned IP address.");
- Essentials.getStatic().loadBanList();
+ ess.loadBanList();
}
}