mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Unify the limit permission (#2420)
This commit is contained in:
parent
d5c8b08fe9
commit
ea6138ce1f
@ -21,7 +21,7 @@ permissions:
|
|||||||
default: op
|
default: op
|
||||||
children:
|
children:
|
||||||
fawe.bypass.regions: true
|
fawe.bypass.regions: true
|
||||||
fawe.limit.*: true
|
fawe.limit.unlimited: true
|
||||||
fawe.tips:
|
fawe.tips:
|
||||||
default: op
|
default: op
|
||||||
fawe.admin:
|
fawe.admin:
|
||||||
|
@ -102,7 +102,7 @@ public class Settings extends Config {
|
|||||||
|
|
||||||
public FaweLimit getLimit(Actor actor) {
|
public FaweLimit getLimit(Actor actor) {
|
||||||
FaweLimit limit;
|
FaweLimit limit;
|
||||||
if (actor.hasPermission("fawe.bypass") || actor.hasPermission("fawe.limit.unlimited")) {
|
if (actor.hasPermission("fawe.limit.unlimited")) {
|
||||||
return FaweLimit.MAX.copy();
|
return FaweLimit.MAX.copy();
|
||||||
}
|
}
|
||||||
limit = new FaweLimit();
|
limit = new FaweLimit();
|
||||||
|
Loading…
Reference in New Issue
Block a user