We default to OP
This commit is contained in:
parent
dd448ff1cc
commit
1eb3d54c4b
@ -53,7 +53,10 @@ public class Permission {
|
|||||||
public Permission(String name, String description, PermissionDefault defaultValue, Map<String, Boolean> children) {
|
public Permission(String name, String description, PermissionDefault defaultValue, Map<String, Boolean> children) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.description = (description == null) ? "" : description;
|
this.description = (description == null) ? "" : description;
|
||||||
this.defaultValue = (defaultValue == null) ? PermissionDefault.FALSE : defaultValue;
|
|
||||||
|
if (defaultValue != null) {
|
||||||
|
this.defaultValue = defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
if (children != null) {
|
if (children != null) {
|
||||||
this.children.putAll(children);
|
this.children.putAll(children);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user