Class MessageService

java.lang.Object
com.booksaw.betterTeams.message.MessageService

public class MessageService extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    MessageService(@NotNull MessageConfig messageConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    @NotNull String
    getMessage(@NotNull String reference, @NotNull Object... replacements)
    Gets a formatted message from the configuration.
    @NotNull String
    getMessage(@Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements)
    Gets a formatted message with PlaceholderAPI support.
     
     
    net.kyori.adventure.text.Component
     
    void
    loadPrefix(@NotNull String prefixKey)
     
    void
     
    void
    reload(@NotNull String language)
     
    void
    sendActionBar(@Nullable org.bukkit.entity.Player recipient, @NotNull String reference, @NotNull Object... replacements)
    Sends an action bar message to a player.
    void
    sendFullActionBar(@Nullable org.bukkit.entity.Player recipient, @Nullable String message)
    Sends a raw action bar message to a player.
    void
    sendFullMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable String message)
    Sends a raw message string to multiple recipients.
    void
    sendFullMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable String message, boolean doPrefix)
    Sends a raw message string to multiple recipients with optional prefix.
    void
    sendFullMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable net.kyori.adventure.text.Component message)
    Sends a raw message component to multiple recipients.
    void
    sendFullMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
    Sends a raw message component to multiple recipients with optional prefix.
    void
    sendFullMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable String message)
    Sends a raw message string to a recipient.
    void
    sendFullMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable String message, boolean doPrefix)
    Sends a raw message string to a recipient with optional prefix.
    void
    sendFullMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable net.kyori.adventure.text.Component message)
    Sends a raw message component to a recipient.
    void
    sendFullMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
    Sends a raw message component to a recipient with optional prefix.
    void
    sendFullSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message)
    Sends a raw subtitle string to multiple players.
    void
    sendFullSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message, boolean doPrefix)
    Sends a raw subtitle string to multiple players with optional prefix.
    void
    sendFullSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component message)
    Sends a raw subtitle component to multiple players.
    void
    sendFullSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
    Sends a raw subtitle component to multiple players with optional prefix.
    void
    sendFullSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message)
    Sends a raw subtitle string to a player.
    void
    sendFullSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message, boolean doPrefix)
    Sends a raw subtitle string to a player with optional prefix.
    void
    sendFullSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component message)
    Sends a raw subtitle component to a player.
    void
    sendFullSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
    Sends a raw subtitle component to a player with optional prefix.
    void
    sendFullTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message)
    Sends a raw title string to multiple players.
    void
    sendFullTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message, boolean doPrefix)
    Sends a raw title string to multiple players with optional prefix.
    void
    sendFullTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component message)
    Sends a raw title component to multiple players.
    void
    sendFullTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
    Sends a raw title component to multiple players with optional prefix.
    void
    sendFullTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message)
    Sends a raw title string to a player.
    void
    sendFullTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message, boolean doPrefix)
    Sends a raw title string to a player with optional prefix.
    void
    sendFullTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component message)
    Sends a raw title component to a player.
    void
    sendFullTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
    Sends a raw title component to a player with optional prefix.
    void
    sendFullTitleAndSub(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String title, @Nullable String subTitle)
    Sends both a title and subtitle to multiple players.
    void
    sendFullTitleAndSub(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String title, @Nullable String subTitle, boolean doPrefix, boolean doPrefixOnSub)
    Sends both a title and subtitle to multiple players with optional prefixes.
    void
    sendFullTitleAndSub(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.Component subTitle)
    Sends both a title and subtitle component to multiple players.
    void
    sendFullTitleAndSub(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.Component subTitle, boolean doPrefix, boolean doPrefixOnSub)
    Sends both a title and subtitle component to multiple players with optional prefixes.
    void
    sendFullTitleAndSub(@Nullable org.bukkit.entity.Player recipient, @Nullable String title, @Nullable String subTitle)
    Sends both a title and subtitle to a player.
    void
    sendFullTitleAndSub(@Nullable org.bukkit.entity.Player recipient, @Nullable String title, @Nullable String subTitle, boolean doPrefix, boolean doPrefixOnSub)
    Sends both a title and subtitle to a player with optional prefixes.
    void
    sendFullTitleAndSub(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.Component subTitle)
    Sends both a title and subtitle component to a player.
    void
    sendFullTitleAndSub(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component title, @Nullable net.kyori.adventure.text.Component subTitle, boolean doPrefix, boolean doPrefixOnSub)
    Sends both a title and subtitle component to a player with optional prefixes.
    void
    sendMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to multiple recipients with optional prefix.
    void
    sendMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to multiple recipients.
    void
    sendMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to multiple recipients with a specific player context and optional prefix.
    void
    sendMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to multiple recipients with a specific player context.
    void
    sendMessage(@Nullable org.bukkit.command.CommandSender recipient, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to a recipient with optional prefix.
    void
    sendMessage(@Nullable org.bukkit.command.CommandSender recipient, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to a recipient.
    void
    sendMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to a recipient with a specific player context and optional prefix.
    void
    sendMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements)
    Sends a message to a recipient with a specific player context for PlaceholderAPI.
    void
    sendSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to multiple players with optional prefix.
    void
    sendSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to multiple players.
    void
    sendSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to multiple players with a specific player context and optional prefix.
    void
    sendSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to multiple players with a specific player context.
    void
    sendSubTitle(@Nullable org.bukkit.entity.Player recipient, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to a player with optional prefix.
    void
    sendSubTitle(@Nullable org.bukkit.entity.Player recipient, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to a player.
    void
    sendSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to a player with a specific player context and optional prefix.
    void
    sendSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements)
    Sends a subtitle to a player with a specific player context for PlaceholderAPI.
    void
    sendTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to multiple players with optional prefix.
    void
    sendTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to multiple players.
    void
    sendTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to multiple players with a specific player context and optional prefix.
    void
    sendTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to multiple players with a specific player context.
    void
    sendTitle(@Nullable org.bukkit.entity.Player recipient, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to a player with optional prefix.
    void
    sendTitle(@Nullable org.bukkit.entity.Player recipient, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to a player.
    void
    sendTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to a player with a specific player context and optional prefix.
    void
    sendTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements)
    Sends a title to a player with a specific player context for PlaceholderAPI.
    void
    setPrefix(@NotNull String prefix)
     
    void
    setupMessageSender(@Nullable net.kyori.adventure.platform.bukkit.BukkitAudiences audiences)
    Sets up the message sender with Adventure support.

    Methods inherited from class java.lang.Object

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

    • MessageService

      public MessageService(@NotNull @NotNull MessageConfig messageConfig)
      Parameters:
      messageConfig - The message configuration to use
  • Method Details

    • setupMessageSender

      public void setupMessageSender(@Nullable @Nullable net.kyori.adventure.platform.bukkit.BukkitAudiences audiences)
      Sets up the message sender with Adventure support.
      Parameters:
      audiences - The BukkitAudiences instance (null for legacy mode)
    • dumpMessageSender

      public void dumpMessageSender()
    • setPrefix

      public void setPrefix(@NotNull @NotNull String prefix)
    • loadPrefix

      public void loadPrefix(@NotNull @NotNull String prefixKey)
    • getMessage

      @NotNull public @NotNull String getMessage(@NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Gets a formatted message from the configuration.
      Parameters:
      reference - The message key
      replacements - The placeholder replacements
      Returns:
      The formatted message string
    • getMessage

      @NotNull public @NotNull String getMessage(@Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Gets a formatted message with PlaceholderAPI support.
      Parameters:
      player - The player for PlaceholderAPI
      reference - The message key
      replacements - The placeholder replacements
      Returns:
      The formatted message string
    • sendMessage

      public void sendMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to a recipient.
      Parameters:
      recipient - The message recipient
      reference - The message key
      replacements - The placeholder replacements
    • sendMessage

      public void sendMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to a recipient with optional prefix.
      Parameters:
      recipient - The message recipient
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendMessage

      public void sendMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, @Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to a recipient with a specific player context for PlaceholderAPI.
      Parameters:
      recipient - The message recipient
      player - The player for PlaceholderAPI context
      reference - The message key
      replacements - The placeholder replacements
    • sendMessage

      public void sendMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, @Nullable @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to a recipient with a specific player context and optional prefix.
      Parameters:
      recipient - The message recipient
      player - The player for PlaceholderAPI context
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendMessage

      public void sendMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to multiple recipients.
      Parameters:
      recipients - The message recipients
      reference - The message key
      replacements - The placeholder replacements
    • sendMessage

      public void sendMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to multiple recipients with optional prefix.
      Parameters:
      recipients - The message recipients
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendMessage

      public void sendMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to multiple recipients with a specific player context.
      Parameters:
      recipients - The message recipients
      player - The player for PlaceholderAPI context
      reference - The message key
      replacements - The placeholder replacements
    • sendMessage

      public void sendMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a message to multiple recipients with a specific player context and optional prefix.
      Parameters:
      recipients - The message recipients
      player - The player for PlaceholderAPI context
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendFullMessage

      public void sendFullMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, @Nullable @Nullable String message)
      Sends a raw message string to a recipient.
      Parameters:
      recipient - The message recipient
      message - The raw message string
    • sendFullMessage

      public void sendFullMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, @Nullable @Nullable String message, boolean doPrefix)
      Sends a raw message string to a recipient with optional prefix.
      Parameters:
      recipient - The message recipient
      message - The raw message string
      doPrefix - Whether to include the prefix
    • sendFullMessage

      public void sendFullMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, @Nullable @Nullable net.kyori.adventure.text.Component message)
      Sends a raw message component to a recipient.
      Parameters:
      recipient - The message recipient
      message - The message component
    • sendFullMessage

      public void sendFullMessage(@Nullable @Nullable org.bukkit.command.CommandSender recipient, @Nullable @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
      Sends a raw message component to a recipient with optional prefix.
      Parameters:
      recipient - The message recipient
      message - The message component
      doPrefix - Whether to include the prefix
    • sendFullMessage

      public void sendFullMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable @Nullable String message)
      Sends a raw message string to multiple recipients.
      Parameters:
      recipients - The message recipients
      message - The raw message string
    • sendFullMessage

      public void sendFullMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable @Nullable String message, boolean doPrefix)
      Sends a raw message string to multiple recipients with optional prefix.
      Parameters:
      recipients - The message recipients
      message - The raw message string
      doPrefix - Whether to include the prefix
    • sendFullMessage

      public void sendFullMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable @Nullable net.kyori.adventure.text.Component message)
      Sends a raw message component to multiple recipients.
      Parameters:
      recipients - The message recipients
      message - The message component
    • sendFullMessage

      public void sendFullMessage(@NotNull @NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
      Sends a raw message component to multiple recipients with optional prefix.
      Parameters:
      recipients - The message recipients
      message - The message component
      doPrefix - Whether to include the prefix
    • sendTitle

      public void sendTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to a player.
      Parameters:
      recipient - The player to send to
      reference - The message key
      replacements - The placeholder replacements
    • sendTitle

      public void sendTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to a player with optional prefix.
      Parameters:
      recipient - The player to send to
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendTitle

      public void sendTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to a player with a specific player context for PlaceholderAPI.
      Parameters:
      recipient - The player to send to
      player - The player for PlaceholderAPI context
      reference - The message key
      replacements - The placeholder replacements
    • sendTitle

      public void sendTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to a player with a specific player context and optional prefix.
      Parameters:
      recipient - The player to send to
      player - The player for PlaceholderAPI context
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendTitle

      public void sendTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to multiple players.
      Parameters:
      recipients - The players to send to
      reference - The message key
      replacements - The placeholder replacements
    • sendTitle

      public void sendTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to multiple players with optional prefix.
      Parameters:
      recipients - The players to send to
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendTitle

      public void sendTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to multiple players with a specific player context.
      Parameters:
      recipients - The players to send to
      player - The player for PlaceholderAPI context
      reference - The message key
      replacements - The placeholder replacements
    • sendTitle

      public void sendTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a title to multiple players with a specific player context and optional prefix.
      Parameters:
      recipients - The players to send to
      player - The player for PlaceholderAPI context
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendFullTitle

      public void sendFullTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable String message)
      Sends a raw title string to a player.
      Parameters:
      recipient - The player to send to
      message - The raw title string
    • sendFullTitle

      public void sendFullTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable String message, boolean doPrefix)
      Sends a raw title string to a player with optional prefix.
      Parameters:
      recipient - The player to send to
      message - The raw title string
      doPrefix - Whether to include the prefix
    • sendFullTitle

      public void sendFullTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable net.kyori.adventure.text.Component message)
      Sends a raw title component to a player.
      Parameters:
      recipient - The player to send to
      message - The title component
    • sendFullTitle

      public void sendFullTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
      Sends a raw title component to a player with optional prefix.
      Parameters:
      recipient - The player to send to
      message - The title component
      doPrefix - Whether to include the prefix
    • sendFullTitle

      public void sendFullTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable String message)
      Sends a raw title string to multiple players.
      Parameters:
      recipients - The players to send to
      message - The raw title string
    • sendFullTitle

      public void sendFullTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable String message, boolean doPrefix)
      Sends a raw title string to multiple players with optional prefix.
      Parameters:
      recipients - The players to send to
      message - The raw title string
      doPrefix - Whether to include the prefix
    • sendFullTitle

      public void sendFullTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable net.kyori.adventure.text.Component message)
      Sends a raw title component to multiple players.
      Parameters:
      recipients - The players to send to
      message - The title component
    • sendFullTitle

      public void sendFullTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
      Sends a raw title component to multiple players with optional prefix.
      Parameters:
      recipients - The players to send to
      message - The title component
      doPrefix - Whether to include the prefix
    • sendSubTitle

      public void sendSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to a player.
      Parameters:
      recipient - The player to send to
      reference - The message key
      replacements - The placeholder replacements
    • sendSubTitle

      public void sendSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to a player with optional prefix.
      Parameters:
      recipient - The player to send to
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendSubTitle

      public void sendSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to a player with a specific player context for PlaceholderAPI.
      Parameters:
      recipient - The player to send to
      player - The player for PlaceholderAPI context
      reference - The message key
      replacements - The placeholder replacements
    • sendSubTitle

      public void sendSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to a player with a specific player context and optional prefix.
      Parameters:
      recipient - The player to send to
      player - The player for PlaceholderAPI context
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendSubTitle

      public void sendSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to multiple players.
      Parameters:
      recipients - The players to send to
      reference - The message key
      replacements - The placeholder replacements
    • sendSubTitle

      public void sendSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to multiple players with optional prefix.
      Parameters:
      recipients - The players to send to
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendSubTitle

      public void sendSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to multiple players with a specific player context.
      Parameters:
      recipients - The players to send to
      player - The player for PlaceholderAPI context
      reference - The message key
      replacements - The placeholder replacements
    • sendSubTitle

      public void sendSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable org.bukkit.OfflinePlayer player, boolean doPrefix, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends a subtitle to multiple players with a specific player context and optional prefix.
      Parameters:
      recipients - The players to send to
      player - The player for PlaceholderAPI context
      doPrefix - Whether to include the prefix
      reference - The message key
      replacements - The placeholder replacements
    • sendFullSubTitle

      public void sendFullSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable String message)
      Sends a raw subtitle string to a player.
      Parameters:
      recipient - The player to send to
      message - The raw subtitle string
    • sendFullSubTitle

      public void sendFullSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable String message, boolean doPrefix)
      Sends a raw subtitle string to a player with optional prefix.
      Parameters:
      recipient - The player to send to
      message - The raw subtitle string
      doPrefix - Whether to include the prefix
    • sendFullSubTitle

      public void sendFullSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable net.kyori.adventure.text.Component message)
      Sends a raw subtitle component to a player.
      Parameters:
      recipient - The player to send to
      message - The subtitle component
    • sendFullSubTitle

      public void sendFullSubTitle(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
      Sends a raw subtitle component to a player with optional prefix.
      Parameters:
      recipient - The player to send to
      message - The subtitle component
      doPrefix - Whether to include the prefix
    • sendFullSubTitle

      public void sendFullSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable String message)
      Sends a raw subtitle string to multiple players.
      Parameters:
      recipients - The players to send to
      message - The raw subtitle string
    • sendFullSubTitle

      public void sendFullSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable String message, boolean doPrefix)
      Sends a raw subtitle string to multiple players with optional prefix.
      Parameters:
      recipients - The players to send to
      message - The raw subtitle string
      doPrefix - Whether to include the prefix
    • sendFullSubTitle

      public void sendFullSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable net.kyori.adventure.text.Component message)
      Sends a raw subtitle component to multiple players.
      Parameters:
      recipients - The players to send to
      message - The subtitle component
    • sendFullSubTitle

      public void sendFullSubTitle(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable net.kyori.adventure.text.Component message, boolean doPrefix)
      Sends a raw subtitle component to multiple players with optional prefix.
      Parameters:
      recipients - The players to send to
      message - The subtitle component
      doPrefix - Whether to include the prefix
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable String title, @Nullable @Nullable String subTitle)
      Sends both a title and subtitle to a player.
      Parameters:
      recipient - The player to send to
      title - The title string
      subTitle - The subtitle string
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable String title, @Nullable @Nullable String subTitle, boolean doPrefix, boolean doPrefixOnSub)
      Sends both a title and subtitle to a player with optional prefixes.
      Parameters:
      recipient - The player to send to
      title - The title string
      subTitle - The subtitle string
      doPrefix - Whether to include prefix on title
      doPrefixOnSub - Whether to include prefix on subtitle
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable String title, @Nullable @Nullable String subTitle)
      Sends both a title and subtitle to multiple players.
      Parameters:
      recipients - The players to send to
      title - The title string
      subTitle - The subtitle string
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable String title, @Nullable @Nullable String subTitle, boolean doPrefix, boolean doPrefixOnSub)
      Sends both a title and subtitle to multiple players with optional prefixes.
      Parameters:
      recipients - The players to send to
      title - The title string
      subTitle - The subtitle string
      doPrefix - Whether to include prefix on title
      doPrefixOnSub - Whether to include prefix on subtitle
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable net.kyori.adventure.text.Component title, @Nullable @Nullable net.kyori.adventure.text.Component subTitle)
      Sends both a title and subtitle component to a player.
      Parameters:
      recipient - The player to send to
      title - The title component
      subTitle - The subtitle component
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable net.kyori.adventure.text.Component title, @Nullable @Nullable net.kyori.adventure.text.Component subTitle, boolean doPrefix, boolean doPrefixOnSub)
      Sends both a title and subtitle component to a player with optional prefixes.
      Parameters:
      recipient - The player to send to
      title - The title component
      subTitle - The subtitle component
      doPrefix - Whether to include prefix on title
      doPrefixOnSub - Whether to include prefix on subtitle
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable net.kyori.adventure.text.Component title, @Nullable @Nullable net.kyori.adventure.text.Component subTitle)
      Sends both a title and subtitle component to multiple players.
      Parameters:
      recipients - The players to send to
      title - The title component
      subTitle - The subtitle component
    • sendFullTitleAndSub

      public void sendFullTitleAndSub(@NotNull @NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable @Nullable net.kyori.adventure.text.Component title, @Nullable @Nullable net.kyori.adventure.text.Component subTitle, boolean doPrefix, boolean doPrefixOnSub)
      Sends both a title and subtitle component to multiple players with optional prefixes.
      Parameters:
      recipients - The players to send to
      title - The title component
      subTitle - The subtitle component
      doPrefix - Whether to include prefix on title
      doPrefixOnSub - Whether to include prefix on subtitle
    • sendActionBar

      public void sendActionBar(@Nullable @Nullable org.bukkit.entity.Player recipient, @NotNull @NotNull String reference, @NotNull @NotNull Object... replacements)
      Sends an action bar message to a player.
      Parameters:
      recipient - The player to send to
      reference - The message key
      replacements - The placeholder replacements
    • sendFullActionBar

      public void sendFullActionBar(@Nullable @Nullable org.bukkit.entity.Player recipient, @Nullable @Nullable String message)
      Sends a raw action bar message to a player.
      Parameters:
      recipient - The player to send to
      message - The raw action bar string
    • reload

      public void reload()
    • reload

      public void reload(@NotNull @NotNull String language)
    • getMessageConfig

      public MessageConfig getMessageConfig()
    • getPrefixComponent

      public net.kyori.adventure.text.Component getPrefixComponent()
    • getPrefix

      public String getPrefix()