mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
Former-commit-id: 851e141fc91b170190d6027f42f59906dda0f31f Former-commit-id: 03dbb9da1788e1c50e84ae33d95f76194ad9a08d
18 lines
414 B
Kotlin
18 lines
414 B
Kotlin
package net.torvald.terrarum.console
|
|
|
|
import net.torvald.terrarum.Terrarum
|
|
|
|
/**
|
|
* Created by minjaesong on 16-03-20.
|
|
*/
|
|
internal object GetTime : ConsoleCommand {
|
|
override fun execute(args: Array<String>) {
|
|
|
|
val worldTime = Terrarum.ingame.world.time
|
|
Echo(worldTime.getFormattedTime())
|
|
}
|
|
|
|
override fun printUsage() {
|
|
Echo("Print current world time in convenient form")
|
|
}
|
|
} |