adding version command for simplified debugging of user issues

This commit is contained in:
nikky 2018-07-14 23:01:10 +02:00
parent 58ff1a3d8f
commit 75a64e49ad
2 changed files with 10 additions and 1 deletions

View File

@ -86,7 +86,8 @@ data class CustomCommand(
else -> null
}
},
"{args}" to { args }
"{args}" to { args },
"{version}" to { instance.modVersion }
)
}
}

View File

@ -56,6 +56,14 @@ object CommandConfig {
timeout = 200,
defaultCommand = true
)),
"version" to ("are you out of date huh ?"
to CustomCommand(
type = CommandType.RESPONSE,
response = "{version}",
help = "are you out of date huh ?",
timeout = 200,
defaultCommand = true
)),
"exec" to ("this uses arguments in a passed-through command, you could restrict the arguments with a regex"
to CustomCommand(
type = CommandType.EXECUTE,