diff --git a/BasicInfoAPI/src/main/api/IServerInfo.java b/BasicInfoAPI/src/main/api/IServerInfo.java new file mode 100644 index 0000000..ab64e5d --- /dev/null +++ b/BasicInfoAPI/src/main/api/IServerInfo.java @@ -0,0 +1,20 @@ +package main.api; + +/** + * Defines interfaces to get the basic info of a Minecraft server. + * @author Rock Chin + */ +public interface IServerInfo { + class Player{ + String name; + String id; + } + String getVersionName(); + int getVersionProtocol(); + int getMaxPlayer(); + int getOnlinePlayer(); + Player[] getPlayerList(); + String getServerDescription(); + String getFavicon(); + String getJSONRawData(); +}