ConsoleCommands / org.lazywizard.console / CommandStore

CommandStore

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

Types

StoredCommand

class StoredCommand

Contains detailed information on a loaded command.

Functions

getAliases

open static fun getAliases(): MutableMap<String, String>

Returns all aliases currently registered by the mod.

getCommandsWithTag

open static fun getCommandsWithTag(tag: String): MutableList<String>

Returns all commands with a specific tag.

getKnownTags

open static fun getKnownTags(): MutableList<String>

Returns all command tags that the mod is currently aware of.

getLoadedCommands

open static fun getLoadedCommands(): MutableList<String>

Returns all commands currently loaded by the mod.

reloadCommands

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.

retrieveCommand

open static fun retrieveCommand(command: String): StoredCommand

Retrieves the raw data for a specific command.