ConsoleCommands / org.lazywizard.console / CommandStore / reloadCommands

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.

Exceptions

IOException - if the CSV file at CommonStrings#PATH_CSV does not exist or can't be opened.

JSONException - if the CSV is malformed or missing columns.

Since
2.0