Unify the limit permission (#2420)

This commit is contained in:
RedstoneFuture 2023-12-07 18:26:21 +01:00 committed by GitHub
parent d5c8b08fe9
commit ea6138ce1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ permissions:
default: op
children:
fawe.bypass.regions: true
fawe.limit.*: true
fawe.limit.unlimited: true
fawe.tips:
default: op
fawe.admin:

View File

@ -102,7 +102,7 @@ public class Settings extends Config {
public FaweLimit getLimit(Actor actor) {
FaweLimit limit;
if (actor.hasPermission("fawe.bypass") || actor.hasPermission("fawe.limit.unlimited")) {
if (actor.hasPermission("fawe.limit.unlimited")) {
return FaweLimit.MAX.copy();
}
limit = new FaweLimit();