mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-01 14:07:46 +01:00
Clear all powertools - /powertool c:
This commit is contained in:
parent
7618754b89
commit
fd2ec22919
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user