Class ServerInformation

java.lang.Object
me.remigio07.chatplugin.api.common.util.ServerInformation

public class ServerInformation extends Object
Holds information about a server under the proxy.
  • Constructor Details

    • ServerInformation

      public ServerInformation(String id, int onlinePlayers, int vanishedPlayers)
      Constructs an instance for a server under the proxy.
      Parameters:
      id - Server's ID
      onlinePlayers - Online players' amount
      vanishedPlayers - Vanished players' amount
  • Method Details

    • getID

      public String 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

      public ServerInformation setOnlinePlayers(int onlinePlayers)
      Sets the online players in this server.
      Parameters:
      onlinePlayers - Online players' amount
      Returns:
      This instance
    • setVanishedPlayers

      public ServerInformation setVanishedPlayers(int vanishedPlayers)
      Sets the vanished players in this server.
      Parameters:
      vanishedPlayers - Vanished players' amount
      Returns:
      This instance