Make /whois throw an error if no matching players are found.

This commit is contained in:
KHobbits 2012-06-11 00:07:22 +01:00
parent 77b0415c1b
commit 2e15de483d
2 changed files with 7 additions and 1 deletions

View file

@ -42,7 +42,7 @@ public class Commandpay extends EssentialsCommand
foundUser = true;
}
if (foundUser == false)
if (!foundUser)
{
throw new NoSuchFieldException(_("playerNotFound"));
}