Class ServerInformation
java.lang.Object
me.remigio07.chatplugin.api.common.util.ServerInformation
Holds information about a server under the proxy.
-
Constructor Summary
ConstructorsConstructorDescriptionServerInformation(String id, int onlinePlayers, int vanishedPlayers) Constructs an instance for a server under the proxy. -
Method Summary
Modifier and TypeMethodDescriptiongetID()Gets this server's ID.longGets the last edit's time, in millisecondsintGets the online players in this server.intGets the vanished players in this server.setOnlinePlayers(int onlinePlayers) Sets the online players in this server.setVanishedPlayers(int vanishedPlayers) Sets the vanished players in this server.
-
Constructor Details
-
ServerInformation
Constructs an instance for a server under the proxy.- Parameters:
id- Server's IDonlinePlayers- Online players' amountvanishedPlayers- Vanished players' amount
-
-
Method Details
-
getID
Gets this server's ID.- Returns:
- Server's ID
-
getOnlinePlayers
public int getOnlinePlayers()Gets the online players in this server.- Returns:
- Online players' amount
-
getVanishedPlayers
public int getVanishedPlayers()Gets the vanished players in this server.- Returns:
- Vanished players' amount
-
getLastEdit
public long getLastEdit()Gets the last edit's time, in milliseconds- Returns:
- Last edit's time
-
setOnlinePlayers
Sets the online players in this server.- Parameters:
onlinePlayers- Online players' amount- Returns:
- This instance
-
setVanishedPlayers
Sets the vanished players in this server.- Parameters:
vanishedPlayers- Vanished players' amount- Returns:
- This instance
-