Skip to content

Commit 4c514c2

Browse files
committed
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
1 parent 40b4eae commit 4c514c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bungee/src/main/java/com/github/games647/fastlogin/bungee/task/FloodgateAuthTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public FloodgateAuthTask(FastLoginCore<ProxiedPlayer, CommandSender, FastLoginBu
5353
@Override
5454
protected void startLogin() {
5555
BungeeLoginSession session = new BungeeLoginSession(player.getName(), isRegistered, profile);
56+
core.getPlugin().getSession().put(player.getPendingConnection(), session);
5657

5758
// enable auto login based on the value of 'autoLoginFloodgate' in config.yml
5859
boolean forcedOnlineMode = autoLoginFloodgate.equals("true")

0 commit comments

Comments
 (0)