summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
index f52a06e29..63717fcae 100644
--- a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
+++ b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
@@ -1,6 +1,10 @@
package com.earth2me.essentials.commands;
-import com.earth2me.essentials.*;
+import static com.earth2me.essentials.I18n._;
+import com.earth2me.essentials.IEssentials;
+import com.earth2me.essentials.OfflinePlayer;
+import com.earth2me.essentials.Trade;
+import com.earth2me.essentials.User;
import java.util.List;
import java.util.logging.Logger;
import org.bukkit.Server;
@@ -48,7 +52,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand
{
if (!getOffline && (user.getBase() instanceof OfflinePlayer || user.isHidden()))
{
- throw new NoSuchFieldException(Util.i18n("playerNotFound"));
+ throw new NoSuchFieldException(_("playerNotFound"));
}
return user;
}
@@ -70,7 +74,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand
return userMatch;
}
}
- throw new NoSuchFieldException(Util.i18n("playerNotFound"));
+ throw new NoSuchFieldException(_("playerNotFound"));
}
@Override
@@ -95,7 +99,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand
protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
{
- throw new Exception(Util.format("onlyPlayers", commandLabel));
+ throw new Exception(_("onlyPlayers", commandLabel));
}
public static String getFinalArg(final String[] args, final int start)