Class SubServerImpl

All Implemented Interfaces:
ServerInfo, ExtraDataHandler<String>, ClientHandler, SubDataSerializable, Server, SubServer
Direct Known Subclasses:
ExternalSubServer, InternalSubServer

public abstract class SubServerImpl extends ServerImpl implements SubServer
SubServer Layout Class
  • Field Details

    • DISALLOWED_COMMANDS

      protected static final Pattern DISALLOWED_COMMANDS
    • registered

      protected boolean registered
    • started

      protected boolean started
    • stopping

      protected boolean stopping
    • updating

      protected boolean updating
  • Constructor Details

  • Method Details

    • edit

      public int edit(UUID player, ObjectMap<String> edit)
      Description copied from interface: SubServer
      Edits the Server
      Specified by:
      edit in interface SubServer
      Parameters:
      player - Player Editing
      edit - Edits
      Returns:
      Success Status
    • permaEdit

      public int permaEdit(UUID player, ObjectMap<String> edit)
      Description copied from interface: SubServer
      Edits the Server (& Saves Changes)
      Specified by:
      permaEdit in interface SubServer
      Parameters:
      player - Player Editing
      edit - Edits
      Returns:
      Success Status
    • edit

      protected int edit(UUID player, ObjectMap<String> edit, boolean perma)
      Edits the Server
      Parameters:
      player - Player Editing
      edit - Edits
      perma - Saves Changes
      Returns:
      Success Status
    • isRegistered

      protected final boolean isRegistered()
      Description copied from class: ServerImpl
      Get if this server has been registered
      Overrides:
      isRegistered in class ServerImpl
      Returns:
      Registered status
    • isAvailable

      public boolean isAvailable()
      Description copied from interface: SubServer
      Is this Host Available?
      Specified by:
      isAvailable in interface SubServer
      Returns:
      Availability Status
    • isOnline

      public boolean isOnline()
      Description copied from interface: SubServer
      If the Server is Online
      This method can only be true when a SubData connection is made!
      Specified by:
      isOnline in interface SubServer
      Returns:
      Online Status
    • isStopping

      public boolean isStopping()
      Description copied from interface: SubServer
      If the Server is Stopping
      This method can only be true when the server is stopped through the server manager!
      Specified by:
      isStopping in interface SubServer
      Returns:
      Stopping Status
    • setTemplate

      public void setTemplate(String template)
      Description copied from interface: SubServer
      Sets the Template this Server was created from
      Specified by:
      setTemplate in interface SubServer
      Parameters:
      template - Value
    • setTemplate

      public void setTemplate(SubCreator.ServerTemplate template)
      Description copied from interface: SubServer
      Sets the Template this Server was created from
      Specified by:
      setTemplate in interface SubServer
      Parameters:
      template - Value
    • getTemplate

      public SubCreator.ServerTemplate getTemplate()
      Description copied from interface: SubServer
      Grabs the Template this Server was created from
      Specified by:
      getTemplate in interface SubServer
      Returns:
      The Template
    • toggleCompatibility

      public void toggleCompatibility(SubServer... server)
      Description copied from interface: SubServer
      Toggles compatibility with other Servers
      Specified by:
      toggleCompatibility in interface SubServer
      Parameters:
      server - SubServers to toggle
    • isCompatible

      public boolean isCompatible(SubServer server)
      Description copied from interface: SubServer
      Checks if a Server is compatible
      Specified by:
      isCompatible in interface SubServer
      Parameters:
      server - Server to check
      Returns:
      Compatible Status
    • getIncompatibilities

      public List<SubServer> getIncompatibilities()
      Description copied from interface: SubServer
      Get all listed incompatibilities for this Server
      Specified by:
      getIncompatibilities in interface SubServer
      Returns:
      Incompatibility List
    • getCurrentIncompatibilities

      public List<SubServer> getCurrentIncompatibilities()
      Description copied from interface: SubServer
      Get incompatibility issues this server currently has
      Specified by:
      getCurrentIncompatibilities in interface SubServer
      Returns:
      Current Incompatibility List
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class ServerImpl
    • forSubData

      public ObjectMap<String> forSubData()
      Specified by:
      forSubData in interface ClientHandler
      Specified by:
      forSubData in interface SubDataSerializable
      Overrides:
      forSubData in class ServerImpl