mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-06 05:51:35 +00:00
only check hidden if !offline, compare user with offlineplayer class
This commit is contained in:
parent
81cc5b1f28
commit
15687c20d0
3 changed files with 4 additions and 3 deletions
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue