ToolSet / com.zndevs.toolset.tools / ToolSetCommandTools / registerIfEnabled
registerIfEnabled
fun registerIfEnabled(commandPlugin: JavaPlugin?, command: String, executor: ToolSetCommand): Boolean
Register a plugin command if it is set to be enabled in its config
Parameters
commandPlugin - The command’s plugin
command - The command to register
executor - The command executor
Return True if the command was enabled