added a fail safe for no users on a lock
This commit is contained in:
parent
64a3690375
commit
adedb540a1
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ public class CommandUser extends TerminalCommand
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayerUse(EntityPlayer var1, ISpecialAccess mm)
|
public boolean canPlayerUse(EntityPlayer var1, ISpecialAccess mm)
|
||||||
{
|
{
|
||||||
return mm.getUserAccess(var1.username).ordinal() >= AccessLevel.ADMIN.ordinal();
|
return mm.getUsers().size() <= 0 || mm.getUserAccess(var1.username).ordinal() >= AccessLevel.ADMIN.ordinal();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue