summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-11-04 16:42:03 +0000
committerKHobbits <rob@khobbits.co.uk>2011-11-04 16:42:03 +0000
commitfd2ec2291982ba1a7dbb5fd4936685a82da7fea0 (patch)
treee29934fd60418da99151b34fed1322b50342b271
parent7618754b894385f4ac58c3c09334f0ca0286ac00 (diff)
downloadEssentials-fd2ec2291982ba1a7dbb5fd4936685a82da7fea0.tar
Essentials-fd2ec2291982ba1a7dbb5fd4936685a82da7fea0.tar.gz
Essentials-fd2ec2291982ba1a7dbb5fd4936685a82da7fea0.tar.lz
Essentials-fd2ec2291982ba1a7dbb5fd4936685a82da7fea0.tar.xz
Essentials-fd2ec2291982ba1a7dbb5fd4936685a82da7fea0.zip
Clear all powertools - /powertool c:
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java4
-rw-r--r--Essentials/src/plugin.yml2
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