adding version command for simplified debugging of user issues
This commit is contained in:
parent
58ff1a3d8f
commit
75a64e49ad
|
@ -86,7 +86,8 @@ data class CustomCommand(
|
|||
else -> null
|
||||
}
|
||||
},
|
||||
"{args}" to { args }
|
||||
"{args}" to { args },
|
||||
"{version}" to { instance.modVersion }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue