ConsoleCommands / org.lazywizard.console / CommandStore / StoredCommand

StoredCommand

class StoredCommand

Contains detailed information on a loaded command.

Since
2.0

Functions

getCommandClass

fun getCommandClass(): Class<out BaseCommand>

Returns the class object for this command's implementation.

getHelp

fun getHelp(): String

Returns the detailed usage instructions for this command.

getName

fun getName(): String

Returns the name of this command (what the player would enter to use it).

getSource

fun getSource(): String

Returns the complete file path of the CSV this command was loaded from (not the relative path). Useful for determining which mod added this command.

getSyntax

fun getSyntax(): String

Returns the syntax for this command.

getTags

fun getTags(): MutableList<String>

Returns all tags associated with this command.