mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Add missing cases from last commit
This commit is contained in:
@ -34,6 +34,7 @@ public class UltraAuthHook implements AuthPlugin<Player> {
|
|||||||
//not thread-safe
|
//not thread-safe
|
||||||
Future<Boolean> future = Bukkit.getScheduler().callSyncMethod(plugin, () -> {
|
Future<Boolean> future = Bukkit.getScheduler().callSyncMethod(plugin, () -> {
|
||||||
if (UltraAuthAPI.isAuthenticated(player)) {
|
if (UltraAuthAPI.isAuthenticated(player)) {
|
||||||
|
plugin.getLog().warn(ALREADY_AUTHENTICATED, player);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ public class xAuthHook implements AuthPlugin<Player> {
|
|||||||
xAuthPlayer xAuthPlayer = xAuthPlugin.getPlayerManager().getPlayer(player);
|
xAuthPlayer xAuthPlayer = xAuthPlugin.getPlayerManager().getPlayer(player);
|
||||||
if (xAuthPlayer != null) {
|
if (xAuthPlayer != null) {
|
||||||
if (xAuthPlayer.isAuthenticated()) {
|
if (xAuthPlayer.isAuthenticated()) {
|
||||||
plugin.getLog().warn("Player {} is already authenticated", player);
|
plugin.getLog().warn(ALREADY_AUTHENTICATED, player);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user