1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 04:21:31 +02:00

Fix noPlayerFound => playerNotFound

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1484 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-05-15 14:02:22 +00:00
parent d0e5ea95ce
commit de43d196d0

View File

@@ -32,7 +32,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand
{ {
if (args.length <= pos) throw new NotEnoughArgumentsException(); if (args.length <= pos) throw new NotEnoughArgumentsException();
List<Player> matches = server.matchPlayer(args[pos]); List<Player> matches = server.matchPlayer(args[pos]);
if (matches.size() < 1) throw new NoSuchFieldException(Util.i18n("noPlayerFound")); if (matches.size() < 1) throw new NoSuchFieldException(Util.i18n("playerNotFound"));
for (Player p : matches) for (Player p : matches)
{ {
if (p.getDisplayName().startsWith(args[pos])) if (p.getDisplayName().startsWith(args[pos]))