open class CommandStore
The console mod's internal command storage. You can retrieve detailed information on the loaded commands using this class.
Author
LazyWizard
Since
2.0
class StoredCommand
Contains detailed information on a loaded command. |
open static fun getAliases(): MutableMap<String, String>
Returns all aliases currently registered by the mod. |
|
open static fun getCommandsWithTag(tag: String): MutableList<String>
Returns all commands with a specific tag. |
|
open static fun getKnownTags(): MutableList<String>
Returns all command tags that the mod is currently aware of. |
|
open static fun getLoadedCommands(): MutableList<String>
Returns all commands currently loaded by the mod. |
|
open static fun reloadCommands(): Unit
Forces the console to clear its stored commands and reload them from the CSV. If a command fails to load it will not throw an Exception. Instead it will display an error message to the player and continue to load the rest of the commands normally. |
|
open static fun retrieveCommand(command: String): StoredCommand
Retrieves the raw data for a specific command. |