diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-11-04 16:42:03 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-11-04 16:42:03 +0000 |
commit | 99565064a2c6e55dcee2e6f9540ccf0844d2c27e (patch) | |
tree | 42c40cc53ede6c440f297fb13ea4b68c78099f2d | |
parent | b12b365f2dc5123d2813345a3398956cf7547f0c (diff) | |
download | Essentials-99565064a2c6e55dcee2e6f9540ccf0844d2c27e.tar Essentials-99565064a2c6e55dcee2e6f9540ccf0844d2c27e.tar.gz Essentials-99565064a2c6e55dcee2e6f9540ccf0844d2c27e.tar.lz Essentials-99565064a2c6e55dcee2e6f9540ccf0844d2c27e.tar.xz Essentials-99565064a2c6e55dcee2e6f9540ccf0844d2c27e.zip |
Clear all powertools - /powertool c:
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java | 4 | ||||
-rw-r--r-- | Essentials/src/plugin.yml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java index c9e8dea58..b99266b13 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java @@ -22,13 +22,13 @@ public class Commandpowertool extends EssentialsCommand String command = getFinalArg(args, 0); // check to see if this is a clear all command - if(command != null && command.equalsIgnoreCase("clearall")) + if(command != null && command.equalsIgnoreCase("c:")) { user.clearAllPowertools(); user.sendMessage(Util.i18n("powerToolClearAll")); return; } - + final ItemStack itemStack = user.getItemInHand(); if (itemStack == null || itemStack.getType() == Material.AIR) { diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml index 4f199ef14..3817234d5 100644 --- a/Essentials/src/plugin.yml +++ b/Essentials/src/plugin.yml @@ -212,7 +212,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> [l:|a:|r:][command] <arguments> + usage: /<command> [l:|a:|r:|c:][command] [arguments] aliases: [pt,epowertool,ept] powertooltoggle: description: Enables or disables all current powertools |