mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-02-21 02:33:36 +01:00
Fixed "user not found" error when performing inventory lookups/rollbacks
This commit is contained in:
parent
975a030ebe
commit
64106e2d64
@ -749,14 +749,14 @@ public class LookupCommand {
|
|||||||
}
|
}
|
||||||
if (exists) {
|
if (exists) {
|
||||||
for (String check : euserlist) {
|
for (String check : euserlist) {
|
||||||
if (!check.equals("#global")) {
|
if (!check.equals("#global") && !check.equals("#hopper")) {
|
||||||
exists = PlayerLookup.playerExists(connection, check);
|
exists = PlayerLookup.playerExists(connection, check);
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
baduser = check;
|
baduser = check;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if (check.equals("#global")) {
|
||||||
baduser = "#global";
|
baduser = "#global";
|
||||||
exists = false;
|
exists = false;
|
||||||
}
|
}
|
||||||
|
@ -368,14 +368,14 @@ public class RollbackRestoreCommand {
|
|||||||
}
|
}
|
||||||
if (exists) {
|
if (exists) {
|
||||||
for (String check : euserlist) {
|
for (String check : euserlist) {
|
||||||
if (!check.equals("#global")) {
|
if (!check.equals("#global") && !check.equals("#hopper")) {
|
||||||
exists = PlayerLookup.playerExists(connection, check);
|
exists = PlayerLookup.playerExists(connection, check);
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
baduser = check;
|
baduser = check;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if (check.equals("#global")) {
|
||||||
baduser = "#global";
|
baduser = "#global";
|
||||||
exists = false;
|
exists = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user