1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-25 21:38:59 +02:00

Merge pull request #11 from HeroCC/patch-1

Fix PermissionsEx false node migration
This commit is contained in:
Luck
2016-09-09 21:49:43 +01:00
committed by GitHub

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;
}