Update ProtocolSupport hook

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

View File

@ -121,8 +121,8 @@
<dependency>
<groupId>com.github.ProtocolSupport</groupId>
<artifactId>ProtocolSupport</artifactId>
<!--4.25.dev-->
<version>a4f060dc46</version>
<!--4.29.dev-->
<version>a030da05d5</version>
<scope>provided</scope>
</dependency>

View File

@ -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);
}
}