mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 01:54:04 +09:00
21 lines
566 B
Kotlin
21 lines
566 B
Kotlin
package net.torvald.terrarum.modulebasegame.console
|
|
|
|
import net.torvald.terrarum.console.ConsoleCommand
|
|
import net.torvald.terrarum.console.Echo
|
|
import net.torvald.terrarum.langpack.Lang
|
|
|
|
/**
|
|
* Created by minjaesong on 2016-07-11.
|
|
*/
|
|
internal object LangTest : ConsoleCommand {
|
|
override fun printUsage() {
|
|
Echo("Prints out string in the current lang pack by STRING_ID provided")
|
|
}
|
|
|
|
override fun execute(args: Array<String>) {
|
|
if (args.size < 2)
|
|
printUsage()
|
|
else
|
|
Echo(Lang[args[1].toUpperCase()])
|
|
}
|
|
} |