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 9bb70c1495
commit eb49497c07

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]))