mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-25 05:21:29 +02:00
Merge pull request #11 from HeroCC/patch-1
Fix PermissionsEx false node migration
This commit is contained in:
@@ -118,7 +118,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
|
|||||||
try {
|
try {
|
||||||
for (String node : group.getOwnPermissions(null)) {
|
for (String node : group.getOwnPermissions(null)) {
|
||||||
boolean value = true;
|
boolean value = true;
|
||||||
if (node.startsWith("!")) {
|
if (node.startsWith("-")) {
|
||||||
node = node.substring(1);
|
node = node.substring(1);
|
||||||
value = false;
|
value = false;
|
||||||
}
|
}
|
||||||
@@ -143,7 +143,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
|
|||||||
for (String world : worlds) {
|
for (String world : worlds) {
|
||||||
for (String node : group.getOwnPermissions(world)) {
|
for (String node : group.getOwnPermissions(world)) {
|
||||||
boolean value = true;
|
boolean value = true;
|
||||||
if (node.startsWith("!")) {
|
if (node.startsWith("-")) {
|
||||||
node = node.substring(1);
|
node = node.substring(1);
|
||||||
value = false;
|
value = false;
|
||||||
}
|
}
|
||||||
@@ -262,7 +262,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
|
|||||||
try {
|
try {
|
||||||
for (String node : user.getOwnPermissions(null)) {
|
for (String node : user.getOwnPermissions(null)) {
|
||||||
boolean value = true;
|
boolean value = true;
|
||||||
if (node.startsWith("!")) {
|
if (node.startsWith("-")) {
|
||||||
node = node.substring(1);
|
node = node.substring(1);
|
||||||
value = false;
|
value = false;
|
||||||
}
|
}
|
||||||
@@ -287,7 +287,7 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
|
|||||||
for (String world : worlds) {
|
for (String world : worlds) {
|
||||||
for (String node : user.getOwnPermissions(world)) {
|
for (String node : user.getOwnPermissions(world)) {
|
||||||
boolean value = true;
|
boolean value = true;
|
||||||
if (node.startsWith("!")) {
|
if (node.startsWith("-")) {
|
||||||
node = node.substring(1);
|
node = node.substring(1);
|
||||||
value = false;
|
value = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user