[Breaking] Fix player online sample

This commit is contained in:
md_5 2013-11-01 22:00:46 +11:00
parent 02619c6132
commit 4040d9f20a
2 changed files with 4 additions and 5 deletions

View File

@ -33,10 +33,9 @@ public class ServerPing
private int max;
private int online;
private PlayerInfo[] sample;
}
private PlayerInfo[] sample;
@Data
@AllArgsConstructor
public static class PlayerInfo

View File

@ -123,7 +123,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
public void handle(LegacyPing ping) throws Exception
{
ServerPing legacy = new ServerPing( new ServerPing.Protocol( bungee.getGameVersion(), bungee.getProtocolVersion() ),
new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount() ), null, listener.getMotd(), null );
new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount(), null ), listener.getMotd(), null );
legacy = bungee.getPluginManager().callEvent( new ProxyPingEvent( this, legacy ) ).getResponse();
String kickMessage = ChatColor.DARK_BLUE
@ -169,8 +169,8 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{
pingBack.done( new ServerPing(
new ServerPing.Protocol( bungee.getGameVersion(), bungee.getProtocolVersion() ),
new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount() ),
null, motd, BungeeCord.getInstance().config.favicon ),
new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount(), null ),
motd, BungeeCord.getInstance().config.favicon ),
null );
}