Skip to content

An extensible notification dispatcher for server-side applications.

Notifications You must be signed in to change notification settings

noyzys/nautchkafe-notification

Repository files navigation

  • goto () -> honey a better. more flexible, and more efficient api with a fluent flow ^

Usage:

/* 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();

Releases

No releases published

Packages

No packages published