mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2026-05-05 04:04:19 +02:00
Move autoLoginFloodgate check to a common function
Reduces duplicate code. Added missing check for "no-conflict".
This commit is contained in:
+1
-2
@@ -49,8 +49,7 @@ public class FloodgateAuthTask extends FloodgateManagement<Player, CommandSender
|
||||
BukkitLoginSession session = new BukkitLoginSession(player.getName(), isRegistered, profile);
|
||||
|
||||
// enable auto login based on the value of 'autoLoginFloodgate' in config.yml
|
||||
session.setVerified(autoLoginFloodgate.equals("true")
|
||||
|| (autoLoginFloodgate.equals("linked") && isLinked));
|
||||
session.setVerified(isAutoLoginAllowed());
|
||||
|
||||
// run login task
|
||||
Runnable forceLoginTask = new ForceLoginTask(core.getPlugin().getCore(), player, session);
|
||||
|
||||
Reference in New Issue
Block a user