mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-02 21:41:28 +01:00
Remove OP->true from fabric AFK permission check
On bukkit default behavior for afk permission is false, but it was unclear and during fabric implementation also ops were given same behavior when permissions are not available. Now OPs no longer have their AFK time ignored. Affects issues: - Fixed #2059
This commit is contained in:
parent
372003591d
commit
0921d1550f
@ -77,7 +77,9 @@ public class FabricAFKListener implements FabricListener {
|
||||
private boolean checkPermission(ServerPlayerEntity player, String permission) {
|
||||
if (CommandManager.isPermissionsApiAvailable()) {
|
||||
return Permissions.check(player, permission);
|
||||
} else return player.hasPermissionLevel(2);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user