mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Remove unnecessary whitespaces
This commit is contained in:
@ -59,7 +59,6 @@ public class FloodgateAuthTask implements Runnable {
|
|||||||
|
|
||||||
// check if the Bedrock player is linked to a Java account
|
// check if the Bedrock player is linked to a Java account
|
||||||
boolean isLinked = floodgatePlayer.getLinkedPlayer() != null;
|
boolean isLinked = floodgatePlayer.getLinkedPlayer() != null;
|
||||||
|
|
||||||
AuthPlugin<Player> authPlugin = plugin.getCore().getAuthPluginHook();
|
AuthPlugin<Player> authPlugin = plugin.getCore().getAuthPluginHook();
|
||||||
|
|
||||||
String autoLoginFloodgate = plugin.getCore().getConfig().get("autoLoginFloodgate").toString().toLowerCase();
|
String autoLoginFloodgate = plugin.getCore().getConfig().get("autoLoginFloodgate").toString().toLowerCase();
|
||||||
@ -75,7 +74,7 @@ public class FloodgateAuthTask implements Runnable {
|
|||||||
player.getName());
|
player.getName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//decide if checks should be made for conflicting Java player names
|
//decide if checks should be made for conflicting Java player names
|
||||||
if (autoLoginFloodgate.equals("no-conflict")
|
if (autoLoginFloodgate.equals("no-conflict")
|
||||||
|| !isRegistered && autoRegisterFloodgate.equals("no-conflict")) {
|
|| !isRegistered && autoRegisterFloodgate.equals("no-conflict")) {
|
||||||
@ -101,7 +100,7 @@ public class FloodgateAuthTask implements Runnable {
|
|||||||
"Auto registration is disabled for Floodgate players in config.yml");
|
"Auto registration is disabled for Floodgate players in config.yml");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// logging in from bedrock for a second time threw an error with UUID
|
// logging in from bedrock for a second time threw an error with UUID
|
||||||
StoredProfile profile = plugin.getCore().getStorage().loadProfile(player.getName());
|
StoredProfile profile = plugin.getCore().getStorage().loadProfile(player.getName());
|
||||||
if (profile == null) {
|
if (profile == null) {
|
||||||
@ -109,7 +108,7 @@ public class FloodgateAuthTask implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BukkitLoginSession session = new BukkitLoginSession(player.getName(), isRegistered, profile);
|
BukkitLoginSession session = new BukkitLoginSession(player.getName(), isRegistered, profile);
|
||||||
|
|
||||||
// enable auto login based on the value of 'autoLoginFloodgate' in config.yml
|
// enable auto login based on the value of 'autoLoginFloodgate' in config.yml
|
||||||
session.setVerified(autoLoginFloodgate.equals("true")
|
session.setVerified(autoLoginFloodgate.equals("true")
|
||||||
|| (autoLoginFloodgate.equals("linked") && isLinked));
|
|| (autoLoginFloodgate.equals("linked") && isLinked));
|
||||||
|
Reference in New Issue
Block a user