Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rchomczyk committed Nov 16, 2024
1 parent 93cbffc commit 7b22b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ A showcase of how to use *honey*, can be found in [honey-test-plugin](honey-test

## With Formatter placeholder:
```java

/* for titles::audience */
dispatcher.createTitle()
.recipient(event.getPlayer())
.title(it -> it.template("Hello!"))
Expand All @@ -67,14 +65,12 @@ dispatcher.createTitle()
.times(2, 4, 2)
.dispatch();

/* for chat::audience */
dispatcher.createChat()
.recipient(Bukkit.getServer())
.template("{{player.getName}} has joined the server!")
.variable("player", event.getPlayer())
.dispatch();

/* for actionbar::audience */
dispatcher.createActionBar()
.recipient(event.getPlayer())
.template("Honey is great, isn't it?")
Expand Down Expand Up @@ -107,7 +103,6 @@ AdventureMessageDispatcher.createActionBar()
.template(Component.text("This is an action bar message!"))
.dispatch()

/* player::audience */
player.createChat()
.template(Component.text("A custom chat message"))
.dispatch()
Expand All @@ -129,6 +124,4 @@ AdventureMessageDispatcher.createTitle()
This method immediately delivers the message synchronously. It calls the deliver function with the rendered message and the recipient, and the action is completed immediately.

- [dispatchAsync](https://github.com/rchomczyk/honey-common/src/dev/shiza/honey/message/dispatcher/MessageBaseDispatcher.java#L76)
This method delivers the message asynchronously. It returns a CompletableFuture that performs the message rendering in the background and then delivers the result once it's ready. It allows non-blocking behavior and handles exceptions asynchronously.
```
This method delivers the message asynchronously. It returns a CompletableFuture that performs the message rendering in the background and then delivers the result once it's ready. It allows non-blocking behavior and handles exceptions asynchronously.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/honey-publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "dev.shiza"
version = "2.0.1-SNAPSHOT"
version = "2.0.1"

java {
withSourcesJar()
Expand Down

0 comments on commit 7b22b3d

Please sign in to comment.