Class WhitelistComponent

java.lang.Object
pro.gravit.launchserver.components.Component
pro.gravit.launchserver.components.WhitelistComponent
All Implemented Interfaces:
AutoCloseable, Reconfigurable

public class WhitelistComponent extends Component implements AutoCloseable, Reconfigurable
  • Field Details

    • message

      public String message
    • enabled

      public boolean enabled
    • whitelist

      public List<String> whitelist
  • Constructor Details

    • WhitelistComponent

      public WhitelistComponent()
  • Method Details

    • init

      public void init(LaunchServer launchServer)
      Specified by:
      init in class Component
    • hookAuth

      public boolean hookAuth(AuthResponse.AuthContext context, Client client) throws pro.gravit.utils.HookException
      Throws:
      pro.gravit.utils.HookException
    • hookJoin

      public boolean hookJoin(JoinServerResponse response, Client client) throws pro.gravit.utils.HookException
      Throws:
      pro.gravit.utils.HookException
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • getCommands

      public Map<String,​pro.gravit.utils.command.Command> getCommands()
      Description copied from interface: Reconfigurable
      Gets a list of commands available for this object.
      Specified by:
      getCommands in interface Reconfigurable
      Returns:
      Key - Command Name Value is a command object