only check hidden if !offline, compare user with offlineplayer class

This commit is contained in:
ementalo 2011-07-18 22:49:27 +01:00
parent 81cc5b1f28
commit 15687c20d0
3 changed files with 4 additions and 3 deletions

View file

@ -44,7 +44,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand
User user = ess.getAllUsers().get(args[pos]);
if (user != null)
{
if(user.isHidden())
if(!getOffline && user.isHidden())
{
throw new NoSuchFieldException(Util.i18n("playerNotFound"));
}