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) {
2222}
2323
2424group " de.randombyte"
25- version " 2.2.1 "
25+ version " 2.2.2 "
2626
2727repositories {
2828 jcenter()
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class CommandUtils @Inject constructor(
4848 companion object {
4949 const val ID = " command-utils"
5050 const val NAME = " CommandUtils"
51- const val VERSION = " 2.2.1 "
51+ const val VERSION = " 2.2.2 "
5252 const val AUTHOR = " RandomByte"
5353
5454 const val PLACEHOLDER_API_ID = " placeholderapi"
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ fun executeCommand(
2525
2626 // cu execute parsed
2727 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" ) {
2932 // This command doesn't need external placeholder processing, it is done in the command itself
3033 replacedCommand
3134 } else {
You can’t perform that action at this time.
0 commit comments