Add missing cases from last commit

This commit is contained in:
games647
2020-05-15 14:44:31 +02:00
parent feee64309e
commit 42637813e8
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ public class UltraAuthHook implements AuthPlugin<Player> {
//not thread-safe
Future<Boolean> future = Bukkit.getScheduler().callSyncMethod(plugin, () -> {
if (UltraAuthAPI.isAuthenticated(player)) {
plugin.getLog().warn(ALREADY_AUTHENTICATED, player);
return false;
}

View File

@ -35,7 +35,7 @@ public class xAuthHook implements AuthPlugin<Player> {
xAuthPlayer xAuthPlayer = xAuthPlugin.getPlayerManager().getPlayer(player);
if (xAuthPlayer != null) {
if (xAuthPlayer.isAuthenticated()) {
plugin.getLog().warn("Player {} is already authenticated", player);
plugin.getLog().warn(ALREADY_AUTHENTICATED, player);
return false;
}