ability to load console commands from mods

This commit is contained in:
minjaesong
2022-02-27 02:24:59 +09:00
parent 95476359fe
commit f4402771c8
5 changed files with 11 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.ccR
* Created by minjaesong on 2016-04-25.
*/
@ConsoleAlias("error")
internal object EchoError : ConsoleCommand {
object EchoError : ConsoleCommand {
override fun execute(args: Array<String>) {
val argsWoHeader = Array(args.size - 1) { args[it + 1] }
argsWoHeader.forEach { execute(it) }