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 | 00050d08d430b32493708a342374c1081bafd727 (patch) | |
tree | 281fd52b1e5f41892feb6d6b340929394c226bf3 | |
parent | dfd283d99840f83babe4e2225cd8f41048cb232f (diff) | |
download | Essentials-00050d08d430b32493708a342374c1081bafd727.tar Essentials-00050d08d430b32493708a342374c1081bafd727.tar.gz Essentials-00050d08d430b32493708a342374c1081bafd727.tar.lz Essentials-00050d08d430b32493708a342374c1081bafd727.tar.xz Essentials-00050d08d430b32493708a342374c1081bafd727.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. |