[BUG] Fix Whitelist Checks
This commit is contained in:
@@ -300,6 +300,15 @@ public class MinecraftAccount {
|
||||
public boolean isAccountWhitelisted() {
|
||||
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)
|
||||
return false;
|
||||
|
||||
@@ -312,7 +321,7 @@ public class MinecraftAccount {
|
||||
}
|
||||
}
|
||||
|
||||
return !SDLinkPlatform.minecraftHelper.isPlayerWhitelisted(MinecraftAccount.standard(account.getUsername())).isError() && account.isWhitelisted();
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user