diff --git a/README.md b/README.md index 71b6df5..381864d 100644 --- a/README.md +++ b/README.md @@ -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!")) @@ -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?") @@ -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() @@ -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. \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/honey-publish.gradle.kts b/buildSrc/src/main/kotlin/honey-publish.gradle.kts index f2c5213..3dc430c 100644 --- a/buildSrc/src/main/kotlin/honey-publish.gradle.kts +++ b/buildSrc/src/main/kotlin/honey-publish.gradle.kts @@ -4,7 +4,7 @@ plugins { } group = "dev.shiza" -version = "2.0.1-SNAPSHOT" +version = "2.0.1" java { withSourcesJar()