Mirror von
https://github.com/Moulberry/AxiomPaperPlugin.git
synchronisiert 2024-11-17 05:40:06 +01:00
Fix SectionPermissionChecker combination
Dieser Commit ist enthalten in:
Ursprung
72db138c81
Commit
5cc7916c95
@ -13,10 +13,10 @@ public interface SectionPermissionChecker {
|
|||||||
if (first.noneAllowed() || second.noneAllowed()) {
|
if (first.noneAllowed() || second.noneAllowed()) {
|
||||||
return NONE_ALLOWED;
|
return NONE_ALLOWED;
|
||||||
}
|
}
|
||||||
if (first.allAllowed()) {
|
if (first == ALL_ALLOWED) {
|
||||||
return second;
|
return second;
|
||||||
}
|
}
|
||||||
if (second.allAllowed()) {
|
if (second == ALL_ALLOWED) {
|
||||||
return first;
|
return first;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,6 +25,10 @@ public interface SectionPermissionChecker {
|
|||||||
return NONE_ALLOWED;
|
return NONE_ALLOWED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (first.allAllowed() && second.allAllowed()) {
|
||||||
|
return new AllAllowedInBox(intersect);
|
||||||
|
}
|
||||||
|
|
||||||
return new SectionPermissionChecker() {
|
return new SectionPermissionChecker() {
|
||||||
@Override
|
@Override
|
||||||
public boolean allAllowed() {
|
public boolean allAllowed() {
|
||||||
|
@ -24,7 +24,7 @@ permissions:
|
|||||||
|
|
||||||
axiom.allow_copying_other_plots:
|
axiom.allow_copying_other_plots:
|
||||||
description: This permission allows users to copy other user's plots
|
description: This permission allows users to copy other user's plots
|
||||||
default: false # true
|
default: true
|
||||||
axiom.can_import_blocks:
|
axiom.can_import_blocks:
|
||||||
description: Allows players to import schematics/blueprints into Axiom
|
description: Allows players to import schematics/blueprints into Axiom
|
||||||
default: true
|
default: true
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren