Log setting the offline UUID on Bungee

Related #344
This commit is contained in:
games647 committed 2020-05-15 14:12:18 +02:00
1 parent 30a763dbc4
commit b9cf8f0498
2 files changed
+6 -1

No files matched your search

@@ -45,7 +45,9 @@ public class ConnectionListener implements Listener {
// cases: Paper (firing BungeeCord message before PlayerJoinEvent) or not running BungeeCord and already
// having the login session from the login process
BukkitLoginSession session = plugin.getSession(player.getAddress());
if (session != null) {
if (session == null) {
plugin.getLog().info("No on-going login session for player: {}", player);
} else {
Runnable forceLoginTask = new ForceLoginTask(plugin.getCore(), player, session);
Bukkit.getScheduler().runTaskAsynchronously(plugin, forceLoginTask);
}