mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-19 14:41:39 +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);
|
String command = getFinalArg(args, 0);
|
||||||
|
|
||||||
// check to see if this is a clear all command
|
// 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.clearAllPowertools();
|
||||||
user.sendMessage(Util.i18n("powerToolClearAll"));
|
user.sendMessage(Util.i18n("powerToolClearAll"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final ItemStack itemStack = user.getItemInHand();
|
final ItemStack itemStack = user.getItemInHand();
|
||||||
if (itemStack == null || itemStack.getType() == Material.AIR)
|
if (itemStack == null || itemStack.getType() == Material.AIR)
|
||||||
{
|
{
|
||||||
|
@ -212,7 +212,7 @@ commands:
|
|||||||
aliases: [pong,eping,epong]
|
aliases: [pong,eping,epong]
|
||||||
powertool:
|
powertool:
|
||||||
description: Assigns a command to the item in hand, {player} will be replaced by the name of the player that you click.
|
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]
|
aliases: [pt,epowertool,ept]
|
||||||
powertooltoggle:
|
powertooltoggle:
|
||||||
description: Enables or disables all current powertools
|
description: Enables or disables all current powertools
|
||||||
|
Loading…
Reference in New Issue
Block a user