Class NotificationManager

java.lang.Object
us.talabrek.ultimateskyblock.player.NotificationManager

public class NotificationManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
    Gets a LegacyComponentSerializer configured for uSkyBlock's (translatable) messages.
    void
    sendActionBar(@NotNull org.bukkit.entity.Player player, @NotNull String message)
    Sends the given String as message to the Player's ActionBar.
    void
    sendActionBar(@NotNull org.bukkit.entity.Player player, @NotNull net.kyori.adventure.text.Component component)
    Sends the given Component as message to the Player's ActionBar.
    void
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NotificationManager

      public NotificationManager(uSkyBlock plugin)
  • Method Details

    • getLegacySerializer

      @NotNull public @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer getLegacySerializer()
      Gets a LegacyComponentSerializer configured for uSkyBlock's (translatable) messages.
      Returns:
      LegacyComponentSerializer configured for uSkyblock's (translatable) messages.
    • sendActionBar

      public void sendActionBar(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String message)
      Sends the given String as message to the Player's ActionBar.
      Parameters:
      player - Player to send the given message to
      message - Message to send to the given player
    • sendActionBar

      public void sendActionBar(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull net.kyori.adventure.text.Component component)
      Sends the given Component as message to the Player's ActionBar.
      Parameters:
      player - Player to send the given message to
      component - Component to send to the given player
    • shutdown

      public void shutdown()