mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
Echo().execute(message) is now just Echo(message)
Former-commit-id: 851e141fc91b170190d6027f42f59906dda0f31f Former-commit-id: 03dbb9da1788e1c50e84ae33d95f76194ad9a08d
This commit is contained in:
@@ -25,22 +25,22 @@ internal object CodexEdictis : ConsoleCommand {
|
||||
val sb = StringBuilder()
|
||||
val formatter = Formatter(sb)
|
||||
|
||||
Echo.execute("Codex: " + formatter.format(Lang["DEV_MESSAGE_CONSOLE_COMMAND_UNKNOWN"], args[1]).toString())
|
||||
Echo("Codex: " + formatter.format(Lang["DEV_MESSAGE_CONSOLE_COMMAND_UNKNOWN"], args[1]).toString())
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
Echo.execute("Usage: codex (command)")
|
||||
Echo.execute("shows how to use 'command'")
|
||||
Echo.execute("leave blank to get list of available commands")
|
||||
Echo("Usage: codex (command)")
|
||||
Echo("shows how to use 'command'")
|
||||
Echo("leave blank to get list of available commands")
|
||||
}
|
||||
|
||||
private fun printList() {
|
||||
Echo.execute(Lang["DEV_MESSAGE_CONSOLE_AVAILABLE_COMMANDS"])
|
||||
Echo(Lang["DEV_MESSAGE_CONSOLE_AVAILABLE_COMMANDS"])
|
||||
CommandDict.dict.forEach { name, cmd ->
|
||||
Echo.execute("$ccW• " + name)
|
||||
Echo("$ccW• " + name)
|
||||
cmd.printUsage()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user