Update ProtocolSupport hook

This commit is contained in:
games647 committed 2018-08-29 19:49:10 +02:00
1 parent 101f7207a9
commit 4b0ad3b186
2 files changed
+4 -4

No files matched your search

@@ -32,7 +32,7 @@ public class ProtocolSupportListener extends JoinManagement<Player, CommandSende
return;
}
String username = loginStartEvent.getName();
String username = loginStartEvent.getConnection().getProfile().getName();
InetSocketAddress address = loginStartEvent.getAddress();
//remove old data every time on a new login in order to keep the session only for one person
@@ -73,7 +73,7 @@ public class ProtocolSupportListener extends JoinManagement<Player, CommandSende
, registered, profile);
plugin.getLoginSessions().put(source.getAddress().toString(), playerSession);
if (plugin.getConfig().getBoolean("premiumUuid")) {
source.getLoginStartEvent().setUseOnlineModeUUID(true);
source.getLoginStartEvent().setOnlineMode(true);
}
}