Eeek, name should be constant!

This commit is contained in:
md_5 2013-04-28 10:39:41 +10:00
parent 824bdc5491
commit 0d7759f50b
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

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