Eeek, name should be constant!
This commit is contained in:
parent
824bdc5491
commit
0d7759f50b
@ -45,6 +45,8 @@ public final class UserConnection implements ProxiedPlayer
|
||||
private final ProxyServer bungee;
|
||||
public final ChannelWrapper ch;
|
||||
@Getter
|
||||
private final String name;
|
||||
@Getter
|
||||
private final InitialHandler pendingConnection;
|
||||
/*========================================================================*/
|
||||
@Getter
|
||||
@ -57,8 +59,6 @@ public final class UserConnection implements ProxiedPlayer
|
||||
public int trackingPingId;
|
||||
public long pingTime;
|
||||
@Getter
|
||||
private String name;
|
||||
@Getter
|
||||
private String displayName;
|
||||
@Getter
|
||||
@Setter
|
||||
|
@ -210,7 +210,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
{
|
||||
Preconditions.checkState( thisState == State.LOGIN, "Not expecting LOGIN" );
|
||||
|
||||
UserConnection userCon = new UserConnection( (BungeeCord) bungee, ch, this );
|
||||
UserConnection userCon = new UserConnection( (BungeeCord) bungee, ch,getName(), this );
|
||||
userCon.init();
|
||||
|
||||
bungee.getPluginManager().callEvent( new PostLoginEvent( userCon ) );
|
||||
|
Loading…
Reference in New Issue
Block a user