mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-05 06:07:54 +02:00
Powertool fix.
This commit is contained in:
@@ -31,7 +31,7 @@ public class Commandpowertool extends EssentialsCommand
|
|||||||
String command = getFinalArg(args, 0);
|
String command = getFinalArg(args, 0);
|
||||||
if (command != null && !command.isEmpty())
|
if (command != null && !command.isEmpty())
|
||||||
{
|
{
|
||||||
if (command.equalsIgnoreCase("list"))
|
if (command.equalsIgnoreCase("l:"))
|
||||||
{
|
{
|
||||||
if (powertools == null || powertools.isEmpty())
|
if (powertools == null || powertools.isEmpty())
|
||||||
{
|
{
|
||||||
@@ -90,6 +90,7 @@ public class Commandpowertool extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
powertools.clear();
|
||||||
user.sendMessage(Util.format("powerToolRemoveAll", itemName));
|
user.sendMessage(Util.format("powerToolRemoveAll", itemName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -208,7 +208,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> [list|a:|r:][command] <arguments>
|
usage: /<command> [l:|a:|r:][command] <arguments>
|
||||||
aliases: [pt,epowertool,ept]
|
aliases: [pt,epowertool,ept]
|
||||||
ptime:
|
ptime:
|
||||||
description: Adjust player's client time. Add @ prefix to fix.
|
description: Adjust player's client time. Add @ prefix to fix.
|
||||||
|
Reference in New Issue
Block a user