mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-26 20:16:16 +01:00
Yaml doesn't like exclamation marks without quotes
This commit is contained in:
parent
267e53979f
commit
1f02282173
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user