mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 10:07:38 +01:00
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)
|
||||
{
|
||||
return restricted && player.hasPermission( "bungeecord.server." + name );
|
||||
return !restricted || player.hasPermission( "bungeecord.server." + name );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user