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

View File

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