Yaml doesn't like exclamation marks without quotes

This commit is contained in:
filoghost 2014-11-15 20:59:11 +01:00
parent 267e53979f
commit 1f02282173

View File

@ -47,7 +47,7 @@ public class ExtendedIcon extends Icon {
}
if (permission != null) {
if (permission.startsWith("!")) {
if (permission.startsWith("-")) {
permissionNegated = true;
permission = permission.substring(1, viewPermission.length()).trim();
}
@ -81,7 +81,7 @@ public class ExtendedIcon extends Icon {
}
if (viewPermission != null) {
if (viewPermission.startsWith("!")) {
if (viewPermission.startsWith("-")) {
viewPermissionNegated = true;
viewPermission = viewPermission.substring(1, viewPermission.length()).trim();
}