Class PaperMessageSender

java.lang.Object
de.eldoria.eldoutilities.messages.MessageSender
de.eldoria.eldoutilities.messages.impl.PaperMessageSender

public final class PaperMessageSender extends MessageSender
  • Constructor Details

    • PaperMessageSender

      public PaperMessageSender(Plugin plugin, net.kyori.adventure.text.minimessage.MiniMessage miniMessage, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver messageTagResolver, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver errorTagResolver, net.kyori.adventure.text.Component prefix)
  • Method Details

    • sendMessage

      public void sendMessage(CommandSender sender, net.kyori.adventure.text.Component component)
      Specified by:
      sendMessage in class MessageSender
    • broadcast

      public void broadcast(String message)
      Specified by:
      broadcast in class MessageSender
    • sendTitle

      public void sendTitle(Player player, net.kyori.adventure.title.Title title)
      Send a title to a player
      Specified by:
      sendTitle in class MessageSender
      Parameters:
      player - player to send
      title - title to send
    • sendActionBar

      public void sendActionBar(Player player, String message, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... placeholder)
      Send a localized action bar to a player
      Specified by:
      sendActionBar in class MessageSender
      Parameters:
      player - player to send
      message - message to send
    • sendErrorActionBar

      public void sendErrorActionBar(Player player, String message, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... placeholder)
      Send a localized action bar to a player
      Specified by:
      sendErrorActionBar in class MessageSender
      Parameters:
      player - player to send
      message - message to send
    • sendBossBar

      public void sendBossBar(Player player, net.kyori.adventure.bossbar.BossBar bossBar)
      Specified by:
      sendBossBar in class MessageSender
    • sendBossBar

      public net.kyori.adventure.bossbar.BossBar sendBossBar(Player player, String message, float progress, net.kyori.adventure.bossbar.BossBar.Color color, net.kyori.adventure.bossbar.BossBar.Overlay overlay, Set<net.kyori.adventure.bossbar.BossBar.Flag> flags)
      Specified by:
      sendBossBar in class MessageSender
    • hideBossBar

      public void hideBossBar(Player player, net.kyori.adventure.bossbar.BossBar bossBar)
      Specified by:
      hideBossBar in class MessageSender
    • asAudience

      public net.kyori.adventure.audience.Audience asAudience(Player player)
      Specified by:
      asAudience in class MessageSender