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;
|
private final ProxyServer bungee;
|
||||||
public final ChannelWrapper ch;
|
public final ChannelWrapper ch;
|
||||||
@Getter
|
@Getter
|
||||||
|
private final String name;
|
||||||
|
@Getter
|
||||||
private final InitialHandler pendingConnection;
|
private final InitialHandler pendingConnection;
|
||||||
/*========================================================================*/
|
/*========================================================================*/
|
||||||
@Getter
|
@Getter
|
||||||
@ -57,8 +59,6 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
public int trackingPingId;
|
public int trackingPingId;
|
||||||
public long pingTime;
|
public long pingTime;
|
||||||
@Getter
|
@Getter
|
||||||
private String name;
|
|
||||||
@Getter
|
|
||||||
private String displayName;
|
private String displayName;
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
@ -210,7 +210,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
{
|
{
|
||||||
Preconditions.checkState( thisState == State.LOGIN, "Not expecting LOGIN" );
|
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();
|
userCon.init();
|
||||||
|
|
||||||
bungee.getPluginManager().callEvent( new PostLoginEvent( userCon ) );
|
bungee.getPluginManager().callEvent( new PostLoginEvent( userCon ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user