Fix canAccess check
This commit is contained in:
parent
4805087e38
commit
1d2afae98e
@ -93,6 +93,6 @@ public abstract class ServerInfo
|
|||||||
*/
|
*/
|
||||||
public boolean canAccess(ProxiedPlayer player)
|
public boolean canAccess(ProxiedPlayer player)
|
||||||
{
|
{
|
||||||
return restricted && player.hasPermission( "bungeecord.server." + name );
|
return !restricted || player.hasPermission( "bungeecord.server." + name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user