Skip to content

Commit

Permalink
Fix CompletableFuture handing in ExecuteResultHandler and 2.3.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi committed Jul 5, 2022
1 parent 4e0e194 commit dc5d620
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Helpful links:
- [Support Discord](https://discord.gg/6cUhkj6uZJ)
- [GitHub issues](https://github.com/Rollczi/LiteCommands/issues)
- [Example (Modern 2.3.0)](https://github.com/Rollczi/LiteCommands/tree/master/examples/bukkit)
- [Example (Modern 2.3.1)](https://github.com/Rollczi/LiteCommands/tree/master/examples/bukkit)
- [Docs (Legacy 1.7.2)](https://docs.rollczi.dev/)

### Panda Repository (Maven or Gradle) ❤️
Expand All @@ -23,11 +23,11 @@ Framework Core
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>core</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```
```groovy
implementation 'dev.rollczi.litecommands:core:2.3.0'
implementation 'dev.rollczi.litecommands:core:2.3.1'
```

### First Simple Command
Expand Down Expand Up @@ -57,11 +57,11 @@ Add this to your dependencies if you want use ready-made implementation for velo
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>velocity</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```
```groovy
implementation 'dev.rollczi.litecommands:velocity:2.3.0'
implementation 'dev.rollczi.litecommands:velocity:2.3.1'
```

#### All extensions:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {

allprojects {
group = "dev.rollczi.litecommands"
version = "2.3.0"
version = "2.3.1"

apply(plugin = "java-library")
apply(plugin = "maven-publish")
Expand Down
2 changes: 1 addition & 1 deletion examples/bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {

dependencies {
compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT")
// implementation("dev.rollczi.litecommands:bukkit:2.3.0") // <-- uncomment in your project
// implementation("dev.rollczi.litecommands:bukkit:2.3.1") // <-- uncomment in your project
implementation(project(":litecommands-bukkit")) // don't use this line in your build.gradle

testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
Expand Down
4 changes: 2 additions & 2 deletions litecommands-bukkit-adventure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>bukkit-adventure</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:bukkit-adventure:2.3.0'
implementation 'dev.rollczi.litecommands:bukkit-adventure:2.3.1'
```
4 changes: 2 additions & 2 deletions litecommands-bukkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>bukkit</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:bukkit:2.3.0'
implementation 'dev.rollczi.litecommands:bukkit:2.3.1'
```

#### Examples:
Expand Down
4 changes: 2 additions & 2 deletions litecommands-bungee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>bungee</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:bungee:2.3.0'
implementation 'dev.rollczi.litecommands:bungee:2.3.1'
```

#### Examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public void handle(SENDER sender, LiteInvocation invocation, ExecuteResult resul
if (object instanceof CompletableFuture<?>) {
CompletableFuture<?> future = ((CompletableFuture<?>) object);

future.whenComplete((o, ex) -> {
future.whenComplete((obj, ex) -> {
if (ex != null) {
ex.printStackTrace();
return;
}

this.handleResult(sender, invocation, result);
this.handleResult(sender, invocation, obj);
});

return;
Expand Down
4 changes: 2 additions & 2 deletions litecommands-velocity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Maven
<dependency>
<groupId>dev.rollczi.litecommands</groupId>
<artifactId>velocity</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```
Gradle
```groovy
implementation 'dev.rollczi.litecommands:velocity:2.3.0'
implementation 'dev.rollczi.litecommands:velocity:2.3.1'
```

#### Examples:
Expand Down

0 comments on commit dc5d620

Please sign in to comment.