Enhance ping API

This commit is contained in:
md_5 2013-10-27 12:36:30 +11:00
parent e1f7b7b126
commit 5dfd14fbe5
2 changed files with 12 additions and 1 deletions

View File

@ -34,6 +34,17 @@ public class ServerPing
private int max; private int max;
private int online; private int online;
} }
private PlayerInfo sample;
@Data
@AllArgsConstructor
public static class PlayerInfo
{
private String name;
private String id;
}
private String description; private String description;
private String favicon; private String favicon;
} }

View File

@ -166,7 +166,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
pingBack.done( new ServerPing( pingBack.done( new ServerPing(
new ServerPing.Protocol( bungee.getGameVersion(), bungee.getProtocolVersion() ), new ServerPing.Protocol( bungee.getGameVersion(), bungee.getProtocolVersion() ),
new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount() ), new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount() ),
motd, BungeeCord.getInstance().favicon ), null, motd, BungeeCord.getInstance().favicon ),
null ); null );
} }