From 41454b533d104aeb39cc8148e794b0354ca2dad1 Mon Sep 17 00:00:00 2001 From: nikky Date: Wed, 23 May 2018 22:52:44 +0200 Subject: [PATCH] add exec command to the defaults --- core/src/main/kotlin/matterlink/config/CommandConfig.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/kotlin/matterlink/config/CommandConfig.kt b/core/src/main/kotlin/matterlink/config/CommandConfig.kt index 2b9869e..058ebe3 100644 --- a/core/src/main/kotlin/matterlink/config/CommandConfig.kt +++ b/core/src/main/kotlin/matterlink/config/CommandConfig.kt @@ -54,6 +54,15 @@ object CommandConfig { allowArgs = false, timeout = 200, defaultCommand = true + ), + "exec" to CustomCommand( + type = CommandType.EXECUTE, + execute = "", + permLevel = 1.0, + help = "Execute any command as OP, be careful with this one", + allowArgs = false, + execOp = true, + defaultCommand = true ) )