Skip to content

Commit e7ba0ae

Browse files
v2.2.2:
- Fixed bug
1 parent 73e1fa8 commit e7ba0ae

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (!isJitpack) {
2222
}
2323

2424
group "de.randombyte"
25-
version "2.2.1"
25+
version "2.2.2"
2626

2727
repositories {
2828
jcenter()

src/main/kotlin/de/randombyte/commandutils/CommandUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

src/main/kotlin/de/randombyte/commandutils/utils.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)