mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
Echo().execute(message) is now just Echo(message)
Former-commit-id: 851e141fc91b170190d6027f42f59906dda0f31f Former-commit-id: 03dbb9da1788e1c50e84ae33d95f76194ad9a08d
This commit is contained in:
@@ -12,13 +12,13 @@ internal object SetTimeDelta : ConsoleCommand {
|
||||
override fun execute(args: Array<String>) {
|
||||
if (args.size == 2) {
|
||||
if (args[1].toInt() > HARD_LIMIT)
|
||||
Error.execute("Delta too large -- acceptable delta is 0-60.")
|
||||
EchoError("Delta too large -- acceptable delta is 0-60.")
|
||||
|
||||
Terrarum.ingame.world.time.setTimeDelta(args[1].toInt())
|
||||
if (Terrarum.ingame.world.time.timeDelta == 0)
|
||||
Echo.execute("時間よ止まれ!ザ・ワルド!!")
|
||||
Echo("時間よ止まれ!ザ・ワルド!!")
|
||||
else
|
||||
Echo.execute("Set time delta to ${Terrarum.ingame.world.time.timeDelta}")
|
||||
Echo("Set time delta to ${Terrarum.ingame.world.time.timeDelta}")
|
||||
}
|
||||
else {
|
||||
printUsage()
|
||||
@@ -26,6 +26,6 @@ internal object SetTimeDelta : ConsoleCommand {
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
Echo.execute("usage: settimedelta <int>")
|
||||
Echo("usage: settimedelta <int>")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user