From 00050d08d430b32493708a342374c1081bafd727 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sat, 27 Aug 2011 02:54:45 +0100 Subject: [PATCH] Powertool fix. --- .../src/com/earth2me/essentials/commands/Commandpowertool.java | 3 ++- Essentials/src/plugin.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java index 4e85d2aeb..4c3d941ae 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java @@ -31,7 +31,7 @@ public class Commandpowertool extends EssentialsCommand String command = getFinalArg(args, 0); if (command != null && !command.isEmpty()) { - if (command.equalsIgnoreCase("list")) + if (command.equalsIgnoreCase("l:")) { if (powertools == null || powertools.isEmpty()) { @@ -90,6 +90,7 @@ public class Commandpowertool extends EssentialsCommand } else { + powertools.clear(); user.sendMessage(Util.format("powerToolRemoveAll", itemName)); } diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml index 9a9d5ffd2..63e9b9aa8 100644 --- a/Essentials/src/plugin.yml +++ b/Essentials/src/plugin.yml @@ -208,7 +208,7 @@ commands: aliases: [pong,eping,epong] powertool: description: Assigns a command to the item in hand, {player} will be replaced by the name of the player that you click. - usage: / [list|a:|r:][command] + usage: / [l:|a:|r:][command] aliases: [pt,epowertool,ept] ptime: description: Adjust player's client time. Add @ prefix to fix.