Generic cleanup of warnings, whitespace and style.
This commit is contained in:
@@ -23,12 +23,12 @@ public class PermissibleBase implements Permissible {
|
||||
this.opable = opable;
|
||||
|
||||
if (opable instanceof Permissible) {
|
||||
this.parent = (Permissible)opable;
|
||||
this.parent = (Permissible) opable;
|
||||
}
|
||||
|
||||
recalculatePermissions();
|
||||
}
|
||||
|
||||
|
||||
public boolean isOp() {
|
||||
if (opable == null) {
|
||||
return false;
|
||||
@@ -90,11 +90,8 @@ public class PermissibleBase implements Permissible {
|
||||
|
||||
if (isPermissionSet(name)) {
|
||||
return permissions.get(name).getValue();
|
||||
} else if (perm != null) {
|
||||
return perm.getDefault().getValue(isOp());
|
||||
} else {
|
||||
return Permission.DEFAULT_PERMISSION.getValue(isOp());
|
||||
}
|
||||
return perm.getDefault().getValue(isOp());
|
||||
}
|
||||
|
||||
public PermissionAttachment addAttachment(Plugin plugin, String name, boolean value) {
|
||||
|
||||
Reference in New Issue
Block a user