Clear all powertools - /powertool c:

This commit is contained in:
KHobbits 2011-11-04 16:42:03 +00:00
parent 7618754b89
commit fd2ec22919
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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