File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/main/kotlin/de/randombyte/commandutils Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ if (!isJitpack) {
22
22
}
23
23
24
24
group " de.randombyte"
25
- version " 2.2.1 "
25
+ version " 2.2.2 "
26
26
27
27
repositories {
28
28
jcenter()
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class CommandUtils @Inject constructor(
48
48
companion object {
49
49
const val ID = " command-utils"
50
50
const val NAME = " CommandUtils"
51
- const val VERSION = " 2.2.1 "
51
+ const val VERSION = " 2.2.2 "
52
52
const val AUTHOR = " RandomByte"
53
53
54
54
const val PLACEHOLDER_API_ID = " placeholderapi"
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ fun executeCommand(
25
25
26
26
// cu execute parsed
27
27
val splits = replacedCommand.split(" " )
28
- val processedCommand = if (splits[1 ] == " execute" && splits[2 ] == " parsed" ) {
28
+
29
+ // commands like "cu execute parsed ..." don't have to be handled now
30
+ // splits[0] == "cu" || "commandUtils" || "cmdUtils"
31
+ val processedCommand = if (splits.size >= 3 && splits[1 ] == " execute" && splits[2 ] == " parsed" ) {
29
32
// This command doesn't need external placeholder processing, it is done in the command itself
30
33
replacedCommand
31
34
} else {
You can’t perform that action at this time.
0 commit comments