Interface NotificationService

All Superinterfaces:
BaseService
All Known Implementing Classes:
InMemoryNotificationService

public interface NotificationService extends BaseService
Notification service interface
  • Method Details

    • sendBossBarNotification

      boolean sendBossBarNotification(org.bukkit.entity.Player player, String message)
      Send a boss bar notification to a player
      Parameters:
      player - The player to send the boss bar to
      message - The message to send
      Returns:
      Whether the boss bar was sent successfully
    • sendBossBarNotification

      boolean sendBossBarNotification(org.bukkit.entity.Player player, String message, int seconds)
      Send a boss bar notification to a player
      Parameters:
      player - The player to send the boss bar to
      message - The message to send
      seconds - The duration of the boss bar in seconds
      Returns:
      Whether the boss bar was sent successfully
    • sendBossBarNotification

      boolean sendBossBarNotification(org.bukkit.entity.Player player, String message, int seconds, org.bukkit.Sound sound)
      Send a boss bar notification to a player
      Parameters:
      player - The player to send the boss bar to
      message - The message to send
      seconds - The duration of the boss bar in seconds
      sound - The sound to play when the boss bar is sent
      Returns:
      Whether the boss bar was sent successfully
    • sendBossBarNotification

      boolean sendBossBarNotification(org.bukkit.entity.Player player, String message, int seconds, org.bukkit.boss.BossBar bossBar)
      Send a boss bar notification to a player
      Parameters:
      player - The player to send the boss bar to
      message - The message to send
      seconds - The duration of the boss bar in seconds
      bossBar - The boss bar to send
      Returns:
      Whether the boss bar was sent successfully
    • sendBossBarNotification

      boolean sendBossBarNotification(org.bukkit.entity.Player player, String message, int seconds, org.bukkit.boss.BossBar bossBar, org.bukkit.Sound sound)
      Send a boss bar notification to a player
      Parameters:
      player - The player to send the boss bar to
      message - The message to send
      seconds - The duration of the boss bar in seconds
      bossBar - The boss bar to send
      sound - The sound to play when the boss bar is sent
      Returns:
      Whether the boss bar was sent successfully
    • sendMessageNotification

      boolean sendMessageNotification(org.bukkit.entity.Player player, String message)
      Send a message notification to a player
      Parameters:
      player - The player to send the message to
      message - The message to send
      Returns:
      Whether the message was sent successfully
    • sendMessageNotification

      boolean sendMessageNotification(org.bukkit.entity.Player player, String message, org.bukkit.Sound sound)
      Send a message notification to a player
      Parameters:
      player - The player to send the message to
      message - The message to send
      sound - The sound to play when the message is sent
      Returns:
      Whether the message was sent successfully
    • sendSubTitleNotification

      boolean sendSubTitleNotification(org.bukkit.entity.Player player, String subtitle)
      Send a subtitle message notification to a player
      Parameters:
      player - The player to send the subtitle to
      subtitle - The subtitle to send
      Returns:
      Whether the subtitle was sent successfully
    • sendSubTitleNotification

      boolean sendSubTitleNotification(org.bukkit.entity.Player player, String subtitle, org.bukkit.Sound sound)
      Send a subtitle message notification to a player
      Parameters:
      player - The player to send the subtitle to
      subtitle - The subtitle to send
      sound - The sound to play when the subtitle is sent
      Returns:
      Whether the subtitle was sent successfully
    • sendTitleNotification

      boolean sendTitleNotification(org.bukkit.entity.Player player, String title, String subtitle)
      Send a title message notification to a player
      Parameters:
      player - The player to send the title to
      title - The title to send
      subtitle - The subtitle to send
      Returns:
      Whether the title was sent successfully
    • sendTitleNotification

      boolean sendTitleNotification(org.bukkit.entity.Player player, String title, String subtitle, org.bukkit.Sound sound)
      Send a title message notification to a player
      Parameters:
      player - The player to send the title to
      title - The title to send
      subtitle - The subtitle to send
      sound - The sound to play when the title is sent
      Returns:
      Whether the title was sent successfully
    • sendTitleNotification

      boolean sendTitleNotification(org.bukkit.entity.Player player, String title, String subtitle, org.bukkit.Sound sound, int fadeIn, int stay, int fadeOut)
      Send a title message notification to a player
      Parameters:
      player - The player to send the title to
      title - The title to send
      subtitle - The subtitle to send
      sound - The sound to play when the title is sent
      fadeIn - The time in ticks for the title to fade in
      stay - The time in ticks for the title to stay
      fadeOut - The time in ticks for the title to fade out
      Returns:
      Whether the title was sent successfully
    • sendActionBarNotification

      boolean sendActionBarNotification(org.bukkit.entity.Player player, String message)
    • sendToastNotification

      boolean sendToastNotification(org.bukkit.entity.Player player, String icon, String message, Toast.Style style)