diff --git a/core/src/main/kotlin/matterlink/bridge/command/CustomCommand.kt b/core/src/main/kotlin/matterlink/bridge/command/CustomCommand.kt index 81c301e..764e077 100644 --- a/core/src/main/kotlin/matterlink/bridge/command/CustomCommand.kt +++ b/core/src/main/kotlin/matterlink/bridge/command/CustomCommand.kt @@ -86,7 +86,8 @@ data class CustomCommand( else -> null } }, - "{args}" to { args } + "{args}" to { args }, + "{version}" to { instance.modVersion } ) } } diff --git a/core/src/main/kotlin/matterlink/config/CommandConfig.kt b/core/src/main/kotlin/matterlink/config/CommandConfig.kt index cb7e53d..a932367 100644 --- a/core/src/main/kotlin/matterlink/config/CommandConfig.kt +++ b/core/src/main/kotlin/matterlink/config/CommandConfig.kt @@ -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,