Enhance ping API
This commit is contained in:
parent
e1f7b7b126
commit
5dfd14fbe5
@ -34,6 +34,17 @@ public class ServerPing
|
||||
private int max;
|
||||
private int online;
|
||||
}
|
||||
|
||||
private PlayerInfo sample;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public static class PlayerInfo
|
||||
{
|
||||
|
||||
private String name;
|
||||
private String id;
|
||||
}
|
||||
private String description;
|
||||
private String favicon;
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ 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() ),
|
||||
motd, BungeeCord.getInstance().favicon ),
|
||||
null, motd, BungeeCord.getInstance().favicon ),
|
||||
null );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user