ConsoleCommands / org.lazywizard.console / Console

Console

open class Console

The main class of the console mod. Most of its methods aren't publicly accessible, so this is mainly used to display messages to the player.

Author
LazyWizard

Since
2.0

Functions

getCommandTarget

open static fun getCommandTarget(context: CommandContext): Any

getSettings

open static fun getSettings(): ConsoleSettings

reloadSettings

open static fun reloadSettings(): Unit

Forces the console to reload its settings from the settings file.

showDialogOnClose

open static fun showDialogOnClose(dialog: InteractionDialogPlugin, token: SectorEntityToken): Unit
open static fun showDialogOnClose(token: SectorEntityToken): Unit

showException

open static fun showException(message: String, ex: Throwable): Unit

Displays the stack trace of a Throwable.

showMessage

open static fun showMessage(message: String, logLevel: Level): Unit
open static fun showMessage(message: String): Unit

Displays a message to the user. The message will be formatted and shown to the player when they reach a section of the game where it can be displayed properly (combat/campaign map).