Fixed "user not found" error when performing inventory lookups/rollbacks

This commit is contained in:
Intelli 2022-03-09 15:32:18 -07:00
parent 975a030ebe
commit 64106e2d64
2 changed files with 4 additions and 4 deletions

View File

@ -749,14 +749,14 @@ public class LookupCommand {
}
if (exists) {
for (String check : euserlist) {
if (!check.equals("#global")) {
if (!check.equals("#global") && !check.equals("#hopper")) {
exists = PlayerLookup.playerExists(connection, check);
if (!exists) {
baduser = check;
break;
}
}
else {
else if (check.equals("#global")) {
baduser = "#global";
exists = false;
}

View File

@ -368,14 +368,14 @@ public class RollbackRestoreCommand {
}
if (exists) {
for (String check : euserlist) {
if (!check.equals("#global")) {
if (!check.equals("#global") && !check.equals("#hopper")) {
exists = PlayerLookup.playerExists(connection, check);
if (!exists) {
baduser = check;
break;
}
}
else {
else if (check.equals("#global")) {
baduser = "#global";
exists = false;
}