Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noyzys/nautchkafe-notification

An extensible notification dispatcher for server-side applications.
https://github.com/noyzys/nautchkafe-notification

bukkit bungeecord minestom notifer notification notification-service spigot sponge velocity

Last synced: 9 days ago
JSON representation

An extensible notification dispatcher for server-side applications.

Awesome Lists containing this project

README

        

#

* goto () -> [honey](https://github.com/rchomczyk/honey) a better. more flexible, and more efficient api with a fluent flow ^

# Usage:

```java
/* for titles::audience */
dispatcher.createTitle()
.recipient(event.getPlayer())
.title(it -> it.template("Hello!"))
.subtitle(it -> it.template("It is a pleasure to see you there {{player.getName}}")
.variable("player", event.getPlayer()))
.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?")
.dispatch();
```