diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-08-27 02:54:45 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-08-27 02:54:45 +0100 |
commit | b73ca7db0a024770116b8846c6445e65a5b0e72b (patch) | |
tree | 4f4d9bb8f8c0b4295d015db446c60c18e24a5824 | |
parent | 85bf61f2ad6e4d72614199026788283f0244c0b3 (diff) | |
download | Essentials-b73ca7db0a024770116b8846c6445e65a5b0e72b.tar Essentials-b73ca7db0a024770116b8846c6445e65a5b0e72b.tar.gz Essentials-b73ca7db0a024770116b8846c6445e65a5b0e72b.tar.lz Essentials-b73ca7db0a024770116b8846c6445e65a5b0e72b.tar.xz Essentials-b73ca7db0a024770116b8846c6445e65a5b0e72b.zip |
Powertool fix.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java | 3 | ||||
-rw-r--r-- | 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: /<command> [list|a:|r:][command] <arguments> + usage: /<command> [l:|a:|r:][command] <arguments> aliases: [pt,epowertool,ept] ptime: description: Adjust player's client time. Add @ prefix to fix. |