Ping stuffs, doesnt seem to work for some reason though

This commit is contained in:
md_5
2013-10-12 13:51:33 +11:00
parent e0ebf1af21
commit 1551bf6f3a
3 changed files with 42 additions and 33 deletions

View File

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