Package com.ultikits.ultitools.services
Interface NotificationService
- All Superinterfaces:
BaseService
- All Known Implementing Classes:
InMemoryNotificationService
Notification service interface
-
Method Summary
Modifier and TypeMethodDescriptionbooleansendActionBarNotification(org.bukkit.entity.Player player, String message) booleansendBossBarNotification(org.bukkit.entity.Player player, String message) Send a boss bar notification to a playerbooleansendBossBarNotification(org.bukkit.entity.Player player, String message, int seconds) Send a boss bar notification to a playerbooleansendBossBarNotification(org.bukkit.entity.Player player, String message, int seconds, org.bukkit.boss.BossBar bossBar) Send a boss bar notification to a playerbooleansendBossBarNotification(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 playerbooleansendBossBarNotification(org.bukkit.entity.Player player, String message, int seconds, org.bukkit.Sound sound) Send a boss bar notification to a playerbooleansendMessageNotification(org.bukkit.entity.Player player, String message) Send a message notification to a playerbooleansendMessageNotification(org.bukkit.entity.Player player, String message, org.bukkit.Sound sound) Send a message notification to a playerbooleansendSubTitleNotification(org.bukkit.entity.Player player, String subtitle) Send a subtitle message notification to a playerbooleansendSubTitleNotification(org.bukkit.entity.Player player, String subtitle, org.bukkit.Sound sound) Send a subtitle message notification to a playerbooleansendTitleNotification(org.bukkit.entity.Player player, String title, String subtitle) Send a title message notification to a playerbooleansendTitleNotification(org.bukkit.entity.Player player, String title, String subtitle, org.bukkit.Sound sound) Send a title message notification to a playerbooleansendTitleNotification(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 playerbooleansendToastNotification(org.bukkit.entity.Player player, String icon, String message, Toast.Style style) Methods inherited from interface com.ultikits.ultitools.interfaces.BaseService
getAuthor, getName, getResourceFolderName, getVersion
-
Method Details
-
sendBossBarNotification
Send a boss bar notification to a player- Parameters:
player- The player to send the boss bar tomessage- The message to send- Returns:
- Whether the boss bar was sent successfully
-
sendBossBarNotification
Send a boss bar notification to a player- Parameters:
player- The player to send the boss bar tomessage- The message to sendseconds- 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 tomessage- The message to sendseconds- The duration of the boss bar in secondssound- 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 tomessage- The message to sendseconds- The duration of the boss bar in secondsbossBar- 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 tomessage- The message to sendseconds- The duration of the boss bar in secondsbossBar- The boss bar to sendsound- The sound to play when the boss bar is sent- Returns:
- Whether the boss bar was sent successfully
-
sendMessageNotification
Send a message notification to a player- Parameters:
player- The player to send the message tomessage- 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 tomessage- The message to sendsound- The sound to play when the message is sent- Returns:
- Whether the message was sent successfully
-
sendSubTitleNotification
Send a subtitle message notification to a player- Parameters:
player- The player to send the subtitle tosubtitle- 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 tosubtitle- The subtitle to sendsound- The sound to play when the subtitle is sent- Returns:
- Whether the subtitle was sent successfully
-
sendTitleNotification
Send a title message notification to a player- Parameters:
player- The player to send the title totitle- The title to sendsubtitle- 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 totitle- The title to sendsubtitle- The subtitle to sendsound- 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 totitle- The title to sendsubtitle- The subtitle to sendsound- The sound to play when the title is sentfadeIn- The time in ticks for the title to fade instay- The time in ticks for the title to stayfadeOut- The time in ticks for the title to fade out- Returns:
- Whether the title was sent successfully
-
sendActionBarNotification
-
sendToastNotification
boolean sendToastNotification(org.bukkit.entity.Player player, String icon, String message, Toast.Style style)
-