Class WhitelistComponent
java.lang.Object
pro.gravit.launchserver.components.Component
pro.gravit.launchserver.components.WhitelistComponent
- All Implemented Interfaces:
AutoCloseable,Reconfigurable
-
Field Summary
FieldsFields inherited from class pro.gravit.launchserver.components.Component
componentName, providers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Gets a list of commands available for this object.booleanhookAuth(AuthResponse.AuthContext context, Client client) booleanhookJoin(JoinServerResponse response, Client client) voidinit(LaunchServer launchServer) Methods inherited from class pro.gravit.launchserver.components.Component
registerComponents, setComponentNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launchserver.Reconfigurable
defaultCommandsMap
-
Field Details
-
message
-
enabled
public boolean enabled -
whitelist
-
-
Constructor Details
-
WhitelistComponent
public WhitelistComponent()
-
-
Method Details
-
init
-
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()- Specified by:
closein interfaceAutoCloseable
-
getCommands
Description copied from interface:ReconfigurableGets a list of commands available for this object.- Specified by:
getCommandsin interfaceReconfigurable- Returns:
- Key - Command Name Value is a command object
-