Class: PluginCommandManager

DKTools.PluginCommandManager

Plugin command manager class

new DKTools.PluginCommandManager ()

Since:
  • 3.0.0

Members

DKTools.PluginCommandManager._pluginCommands Object privatestaticreadonly

Plugin commands

Methods

DKTools.PluginCommandManager.has (pluginCommand)Boolean static

Returns true if the command has the handler
Name Type Description
pluginCommand String Name of the command
Returns:
Type Description
Boolean Command has the handler

DKTools.PluginCommandManager.process (gameInterpreter, pluginCommand, args) static

Processes the handler of the command
Name Type Description
gameInterpreter Game_Interpreter Interpreter
pluginCommand String Name of the command
args Array Arguments of the command
Version:
  • 9.0.0

DKTools.PluginCommandManager.set (pluginCommand, handler) static

Sets the handler of the plugin command
Name Type Description
pluginCommand String Name of the command
handler function Handler of the command