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:
Risto Lahtela 2021-09-10 18:42:49 +03:00
parent 372003591d
commit 0921d1550f

View File

@ -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