Ping stuffs, doesnt seem to work for some reason though
This commit is contained in:
@@ -1,33 +1,38 @@
|
||||
package net.md_5.bungee.api;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* Represents the standard list data returned by opening a server in the
|
||||
* Minecraft client server list, or hitting it with a packet 0xFE.
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ServerPing
|
||||
{
|
||||
|
||||
/**
|
||||
* Numeric protocol version supported by the server.
|
||||
*/
|
||||
private final int protocolVersion;
|
||||
/**
|
||||
* Human readable game version.
|
||||
*/
|
||||
private final String gameVersion;
|
||||
/**
|
||||
* Server MOTD.
|
||||
*/
|
||||
private final String motd;
|
||||
/**
|
||||
* Current amount of players on the server.
|
||||
*/
|
||||
private final int currentPlayers;
|
||||
/**
|
||||
* Max amount of players the server will allow.
|
||||
*/
|
||||
private final int maxPlayers;
|
||||
private Protocol version;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public static class Protocol
|
||||
{
|
||||
|
||||
private String name;
|
||||
private int version;
|
||||
}
|
||||
private Players players;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public static class Players
|
||||
{
|
||||
|
||||
private int max;
|
||||
private int online;
|
||||
}
|
||||
private String description;
|
||||
}
|
||||
|
Reference in New Issue
Block a user