public class ServerStatus extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
hasPassword |
String |
password |
short |
ping |
PlayerList |
playerList |
boolean |
reachable |
String |
username |
Constructor and Description |
---|
ServerStatus() |
Modifier and Type | Method and Description |
---|---|
String |
getMap()
Returns the name of the current map.
|
int |
getNumPlayers(boolean onlyRealPlayers)
Returns the amount of players.
|
void |
setMap(String map)
Sets the map and escapes html characters.
|
public String password
public String username
public boolean reachable
public boolean hasPassword
public PlayerList playerList
public short ping
public int getNumPlayers(boolean onlyRealPlayers)
onlyRealPlayers
- If true it will exclude bots from the count.public String getMap()
public void setMap(String map)
map
- The maps name.