mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Fix "No Session" in plugin messaging
After Bungee recieved a plugin message from Bukkit, that it has completed login/register for a Floodgate player, bungee would throw a NullPointerException: Cannot invoke "BungeeLoginSession.getProfile()" because "loginSession" is null
This commit is contained in:
@ -53,6 +53,7 @@ public class FloodgateAuthTask
|
|||||||
@Override
|
@Override
|
||||||
protected void startLogin() {
|
protected void startLogin() {
|
||||||
BungeeLoginSession session = new BungeeLoginSession(player.getName(), isRegistered, profile);
|
BungeeLoginSession session = new BungeeLoginSession(player.getName(), isRegistered, profile);
|
||||||
|
core.getPlugin().getSession().put(player.getPendingConnection(), session);
|
||||||
|
|
||||||
// enable auto login based on the value of 'autoLoginFloodgate' in config.yml
|
// enable auto login based on the value of 'autoLoginFloodgate' in config.yml
|
||||||
boolean forcedOnlineMode = autoLoginFloodgate.equals("true")
|
boolean forcedOnlineMode = autoLoginFloodgate.equals("true")
|
||||||
|
Reference in New Issue
Block a user