Class ServerData

java.lang.Object
net.ME1312.SubServers.Velocity.Server.ServerData
Direct Known Subclasses:
SubServerData

public class ServerData extends Object
Server Class
  • Field Details

    • whitelist

      public List<UUID> whitelist
  • Constructor Details

  • Method Details

    • getSubData

      public DataSender[] getSubData()
      Gets the SubData Client Channel IDs
      Returns:
      SubData Client Channel ID Array
    • setSubData

      public void setSubData(UUID client, int channel)
      Link a SubData Client to this Object
      Parameters:
      client - Client to Link
      channel - Channel ID
    • get

      public ServerInfo get()
      Get the underlying ServerInfo of this Server
      Returns:
      ServerInfo
    • getAddress

      public InetSocketAddress getAddress()
      Get the Address of this Server
      Returns:
      Server Address
    • getName

      public String getName()
      Get the Name of this Server
      Returns:
      Server Name
    • getDisplayName

      public String getDisplayName()
      Get the Display Name of this Server
      Returns:
      Display Name
    • setDisplayName

      public void setDisplayName(String value)
      Sets the Display Name for this Server
      Parameters:
      value - Value (or null to reset)
    • isHidden

      public boolean isHidden()
      If the server is hidden from players
      Returns:
      Hidden Status
    • setHidden

      public void setHidden(boolean value)
      Set if the server is hidden from players
      Parameters:
      value - Value
    • getMotd

      public String getMotd()
      Gets the MOTD of the Server
      Returns:
      Server MOTD
    • setMotd

      public void setMotd(String value)
      Sets the MOTD of the Server
      Parameters:
      value - Value
    • isRestricted

      public boolean isRestricted()
      Gets if the Server is Restricted
      Returns:
      Restricted Status
    • setRestricted

      public void setRestricted(boolean value)
      Sets if the Server is Restricted
      Parameters:
      value - Value
    • canAccess

      public boolean canAccess(PermissionSubject player)
      See if a player is whitelisted
      Parameters:
      player - Player
      Returns:
      Whitelisted Status
    • whitelist

      public void whitelist(UUID player)
      Add a player to the whitelist (for use with restricted servers)
      Parameters:
      player - Player to add
    • unwhitelist

      public void unwhitelist(UUID player)
      Remove a player to the whitelist
      Parameters:
      player - Player to remove
    • getSignature

      public final String getSignature()
      Get the Signature of this Object
      Returns:
      Object Signature