From 99565064a2c6e55dcee2e6f9540ccf0844d2c27e Mon Sep 17 00:00:00 2001 From: KHobbits Date: Fri, 4 Nov 2011 16:42:03 +0000 Subject: Clear all powertools - /powertool c: --- Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java | 4 ++-- 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: / [l:|a:|r:][command] + usage: / [l:|a:|r:|c:][command] [arguments] aliases: [pt,epowertool,ept] powertooltoggle: description: Enables or disables all current powertools -- cgit v1.2.3