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

View File

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