Package com.tenio.core.command.client
Class AbstractClientCommandHandler<P extends Player>
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.core.handler.AbstractHandler
com.tenio.core.command.client.AbstractClientCommandHandler<P>
The base class for all self defined commands.
- Since:
- 0.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidIt is called when the server invokes a command.Retrieves the client command manager.voidsetCommandManager(ClientCommandManager clientCommandManager) Sets value for the client command manager.Methods inherited from class com.tenio.core.handler.AbstractHandler
api, array, clientCommand, map, msgarray, msgmap, response, roomSettingMethods inherited from class com.tenio.common.logger.SystemLogger
debug, debugEvent, isDebugEnabled, isTraceEnabled, trace, traceMethods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, error, info, info, info, info, info, info, info, info, isErrorEnabled, isInfoEnabled
-
Constructor Details
-
AbstractClientCommandHandler
public AbstractClientCommandHandler()
-
-
Method Details
-
getCommandManager
Retrieves the client command manager.- Returns:
- an instance of
ClientCommandManager
-
setCommandManager
Sets value for the client command manager. *- Parameters:
clientCommandManager- an instance ofClientCommandManager
-
execute
It is called when the server invokes a command.- Parameters:
player- The receiver which gets command from its clientmessage- The message as command
-