Class NotificationManager
java.lang.Object
us.talabrek.ultimateskyblock.player.NotificationManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer
Gets aLegacyComponentSerializer
configured for uSkyBlock's (translatable) messages.void
sendActionBar
(@NotNull org.bukkit.entity.Player player, @NotNull String message) Sends the givenString
as message to thePlayer
's ActionBar.void
sendActionBar
(@NotNull org.bukkit.entity.Player player, @NotNull net.kyori.adventure.text.Component component) Sends the givenComponent
as message to thePlayer
's ActionBar.void
shutdown()
-
Constructor Details
-
NotificationManager
-
-
Method Details
-
getLegacySerializer
@NotNull public @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer getLegacySerializer()Gets aLegacyComponentSerializer
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 givenString
as message to thePlayer
's ActionBar.- Parameters:
player
- Player to send the given message tomessage
- 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 givenComponent
as message to thePlayer
's ActionBar.- Parameters:
player
- Player to send the given message tocomponent
- Component to send to the given player
-
shutdown
public void shutdown()
-