geforkt von Mirrors/FastAsyncWorldEdit
fix: more intuitive limit permissions (#2233)
- immediately return limit if unlimited (limit combination take the "higher" value) - add fawe.limit.unlimited permission and it's an intuitive permission to give
Dieser Commit ist enthalten in:
Ursprung
3a13c4aaa7
Commit
1b0fb9ed48
@ -102,11 +102,10 @@ public class Settings extends Config {
|
|||||||
|
|
||||||
public FaweLimit getLimit(Actor actor) {
|
public FaweLimit getLimit(Actor actor) {
|
||||||
FaweLimit limit;
|
FaweLimit limit;
|
||||||
if (actor.hasPermission("fawe.limit.*") || actor.hasPermission("fawe.bypass")) {
|
if (actor.hasPermission("fawe.bypass") || actor.hasPermission("fawe.limit.unlimited")) {
|
||||||
limit = FaweLimit.MAX.copy();
|
return FaweLimit.MAX.copy();
|
||||||
} else {
|
|
||||||
limit = new FaweLimit();
|
|
||||||
}
|
}
|
||||||
|
limit = new FaweLimit();
|
||||||
ArrayList<String> keys = new ArrayList<>(LIMITS.getSections());
|
ArrayList<String> keys = new ArrayList<>(LIMITS.getSections());
|
||||||
if (keys.remove("default")) {
|
if (keys.remove("default")) {
|
||||||
keys.add("default");
|
keys.add("default");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren