Skip to content

Commit

Permalink
Fixed any match consumer not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Despical committed Jul 24, 2022
1 parent 07c2229 commit e04d40c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To add this project as a dependency to your project, add the following to your p
<dependency>
<groupId>com.github.Despical</groupId>
<artifactId>CommandFramework</artifactId>
<version>1.0.9</version>
<version>1.1.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -45,7 +45,7 @@ repositories {
```
```
dependencies {
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.0.9";
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.1.0";
}
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.despical</groupId>
<artifactId>command-framework</artifactId>
<version>1.0.9</version>
<version>1.1.0</version>

<properties>
<java.version>8</java.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,11 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull org.bukkit.comm
Map.Entry<Command, Map.Entry<Method, Object>> entry = this.getAssociatedCommand(cmd.getName(), args);

if (entry == null) {
return true;
} else {
if (anyMatchConsumer != null) {
anyMatchConsumer.accept(new CommandArguments(sender, cmd, label, args));
return true;
}

return true;
}

Command command = entry.getKey();
Expand Down

0 comments on commit e04d40c

Please sign in to comment.