Skip to content

Commit

Permalink
Add IServerInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jun 16, 2021
1 parent 970184a commit fe80d17
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions BasicInfoAPI/src/main/api/IServerInfo.java
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit fe80d17

Please sign in to comment.