1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-05 06:07:54 +02:00

Powertool fix.

This commit is contained in:
KHobbits
2011-08-27 02:54:45 +01:00
parent 85bf61f2ad
commit b73ca7db0a
2 changed files with 3 additions and 2 deletions

View File

@@ -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));
} }

View File

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