[BUG] Fix Whitelist Checks

This commit is contained in:
2023-08-05 20:57:13 +02:00
parent 7c58d2b925
commit 33182b1235

View File

@@ -300,6 +300,15 @@ public class MinecraftAccount {
public boolean isAccountWhitelisted() { public boolean isAccountWhitelisted() {
SDLinkAccount account = getStoredAccount(); SDLinkAccount account = getStoredAccount();
if (account == null)
return false;
return !SDLinkPlatform.minecraftHelper.isPlayerWhitelisted(MinecraftAccount.standard(account.getUsername())).isError() && account.isWhitelisted();
}
public boolean isAutoWhitelisted() {
SDLinkAccount account = getStoredAccount();
if (account == null) if (account == null)
return false; return false;
@@ -312,7 +321,7 @@ public class MinecraftAccount {
} }
} }
return !SDLinkPlatform.minecraftHelper.isPlayerWhitelisted(MinecraftAccount.standard(account.getUsername())).isError() && account.isWhitelisted(); return false;
} }
/** /**