diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commanddeljail.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commanddeljail.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commanddeljail.java b/Essentials/src/com/earth2me/essentials/commands/Commanddeljail.java index 23ec04c4e..5c2c957e4 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commanddeljail.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commanddeljail.java @@ -1,22 +1,25 @@ package com.earth2me.essentials.commands; -import com.earth2me.essentials.Util; +import static com.earth2me.essentials.I18n._; import org.bukkit.Server; import org.bukkit.command.CommandSender; -public class Commanddeljail extends EssentialsCommand { - public Commanddeljail() { +public class Commanddeljail extends EssentialsCommand +{ + public Commanddeljail() + { super("deljail"); } @Override - protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception { + protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception + { if (args.length < 1) { throw new NotEnoughArgumentsException(); } - ess.getJail().delJail(args[0]); - sender.sendMessage(Util.format("deleteJail", args[0])); + ess.getJails().removeJail(args[0]); + sender.sendMessage(_("deleteJail", args[0])); } } |