Fix PermissionsEx false node migration

PermissionsEx false nodes begin with a '-' not a '!'
This commit is contained in:
HeroCC 2016-09-09 16:39:13 -04:00 committed by GitHub
parent 07514000a4
commit 53db8c5928

View File

@ -118,7 +118,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
try {
for (String node : group.getOwnPermissions(null)) {
boolean value = true;
if (node.startsWith("!")) {
if (node.startsWith("-")) {
node = node.substring(1);
value = false;
}
@ -143,7 +143,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
for (String world : worlds) {
for (String node : group.getOwnPermissions(world)) {
boolean value = true;
if (node.startsWith("!")) {
if (node.startsWith("-")) {
node = node.substring(1);
value = false;
}
@ -262,7 +262,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
try {
for (String node : user.getOwnPermissions(null)) {
boolean value = true;
if (node.startsWith("!")) {
if (node.startsWith("-")) {
node = node.substring(1);
value = false;
}
@ -287,7 +287,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
for (String world : worlds) {
for (String node : user.getOwnPermissions(world)) {
boolean value = true;
if (node.startsWith("!")) {
if (node.startsWith("-")) {
node = node.substring(1);
value = false;
}