mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
Former-commit-id: 375604da8a20a6ba7cd0a8d05a44add02b2d04f4 Former-commit-id: 287287c5920b07618174d7a7573f049d350ded66
26 lines
740 B
Kotlin
26 lines
740 B
Kotlin
package net.torvald.terrarum.console
|
|
|
|
import net.torvald.terrarum.Terrarum
|
|
import net.torvald.terrarum.langpack.Lang
|
|
|
|
/**
|
|
* Created by minjaesong on 16-03-22.
|
|
*/
|
|
class Help : ConsoleCommand {
|
|
override fun execute(args: Array<String>) {
|
|
val echo = Echo()
|
|
if (args.size == 1) {
|
|
for (i in 1..6) echo.execute(Lang["HELP_OTF_MAIN_$i"])
|
|
}
|
|
else if (args[1].toLowerCase() == "slow") {
|
|
for (i in 1..4) echo.execute(Lang["HELP_OTF_SLOW_$i"])
|
|
}
|
|
else {
|
|
for (i in 1..6) echo.execute(Lang["HELP_OTF_MAIN_$i"])
|
|
}
|
|
}
|
|
|
|
override fun printUsage() {
|
|
Echo().execute("Prints some utility functions assigned to function row of the keyboard.")
|
|
}
|
|
} |