Skip to content

Commit e04d40c

Browse files
committed
Fixed any match consumer not working
1 parent 07c2229 commit e04d40c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To add this project as a dependency to your project, add the following to your p
3232
<dependency>
3333
<groupId>com.github.Despical</groupId>
3434
<artifactId>CommandFramework</artifactId>
35-
<version>1.0.9</version>
35+
<version>1.1.0</version>
3636
<scope>compile</scope>
3737
</dependency>
3838
```
@@ -45,7 +45,7 @@ repositories {
4545
```
4646
```
4747
dependencies {
48-
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.0.9";
48+
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.1.0";
4949
}
5050
```
5151

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>me.despical</groupId>
55
<artifactId>command-framework</artifactId>
6-
<version>1.0.9</version>
6+
<version>1.1.0</version>
77

88
<properties>
99
<java.version>8</java.version>

src/main/java/me/despical/commandframework/CommandFramework.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,11 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull org.bukkit.comm
216216
Map.Entry<Command, Map.Entry<Method, Object>> entry = this.getAssociatedCommand(cmd.getName(), args);
217217

218218
if (entry == null) {
219-
return true;
220-
} else {
221219
if (anyMatchConsumer != null) {
222220
anyMatchConsumer.accept(new CommandArguments(sender, cmd, label, args));
223-
return true;
224221
}
222+
223+
return true;
225224
}
226225

227226
Command command = entry.getKey();

0 commit comments

Comments
 (0)