Package com.booksaw.betterTeams.message
Class MessageService
java.lang.Object
com.booksaw.betterTeams.message.MessageService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid@NotNull StringgetMessage(@NotNull String reference, @NotNull Object... replacements) Gets a formatted message from the configuration.@NotNull StringgetMessage(@Nullable org.bukkit.OfflinePlayer player, @NotNull String reference, @NotNull Object... replacements) Gets a formatted message with PlaceholderAPI support.net.kyori.adventure.text.ComponentvoidloadPrefix(@NotNull String prefixKey) voidreload()voidvoidsendActionBar(@Nullable org.bukkit.entity.Player recipient, @NotNull String reference, @NotNull Object... replacements) Sends an action bar message to a player.voidsendFullActionBar(@Nullable org.bukkit.entity.Player recipient, @Nullable String message) Sends a raw action bar message to a player.voidsendFullMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable String message) Sends a raw message string to multiple recipients.voidsendFullMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable String message, boolean doPrefix) Sends a raw message string to multiple recipients with optional prefix.voidsendFullMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @Nullable net.kyori.adventure.text.Component message) Sends a raw message component to multiple recipients.voidsendFullMessage(@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.voidsendFullMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable String message) Sends a raw message string to a recipient.voidsendFullMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable String message, boolean doPrefix) Sends a raw message string to a recipient with optional prefix.voidsendFullMessage(@Nullable org.bukkit.command.CommandSender recipient, @Nullable net.kyori.adventure.text.Component message) Sends a raw message component to a recipient.voidsendFullMessage(@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.voidsendFullSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message) Sends a raw subtitle string to multiple players.voidsendFullSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message, boolean doPrefix) Sends a raw subtitle string to multiple players with optional prefix.voidsendFullSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component message) Sends a raw subtitle component to multiple players.voidsendFullSubTitle(@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.voidsendFullSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message) Sends a raw subtitle string to a player.voidsendFullSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message, boolean doPrefix) Sends a raw subtitle string to a player with optional prefix.voidsendFullSubTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component message) Sends a raw subtitle component to a player.voidsendFullSubTitle(@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.voidsendFullTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message) Sends a raw title string to multiple players.voidsendFullTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String message, boolean doPrefix) Sends a raw title string to multiple players with optional prefix.voidsendFullTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable net.kyori.adventure.text.Component message) Sends a raw title component to multiple players.voidsendFullTitle(@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.voidsendFullTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message) Sends a raw title string to a player.voidsendFullTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable String message, boolean doPrefix) Sends a raw title string to a player with optional prefix.voidsendFullTitle(@Nullable org.bukkit.entity.Player recipient, @Nullable net.kyori.adventure.text.Component message) Sends a raw title component to a player.voidsendFullTitle(@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.voidsendFullTitleAndSub(@NotNull Collection<org.bukkit.entity.Player> recipients, @Nullable String title, @Nullable String subTitle) Sends both a title and subtitle to multiple players.voidsendFullTitleAndSub(@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.voidsendFullTitleAndSub(@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.voidsendFullTitleAndSub(@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.voidsendFullTitleAndSub(@Nullable org.bukkit.entity.Player recipient, @Nullable String title, @Nullable String subTitle) Sends both a title and subtitle to a player.voidsendFullTitleAndSub(@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.voidsendFullTitleAndSub(@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.voidsendFullTitleAndSub(@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.voidsendMessage(@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.voidsendMessage(@NotNull Collection<? extends org.bukkit.command.CommandSender> recipients, @NotNull String reference, @NotNull Object... replacements) Sends a message to multiple recipients.voidsendMessage(@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.voidsendMessage(@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.voidsendMessage(@Nullable org.bukkit.command.CommandSender recipient, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements) Sends a message to a recipient with optional prefix.voidsendMessage(@Nullable org.bukkit.command.CommandSender recipient, @NotNull String reference, @NotNull Object... replacements) Sends a message to a recipient.voidsendMessage(@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.voidsendMessage(@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.voidsendSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements) Sends a subtitle to multiple players with optional prefix.voidsendSubTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @NotNull String reference, @NotNull Object... replacements) Sends a subtitle to multiple players.voidsendSubTitle(@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.voidsendSubTitle(@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.voidsendSubTitle(@Nullable org.bukkit.entity.Player recipient, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements) Sends a subtitle to a player with optional prefix.voidsendSubTitle(@Nullable org.bukkit.entity.Player recipient, @NotNull String reference, @NotNull Object... replacements) Sends a subtitle to a player.voidsendSubTitle(@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.voidsendSubTitle(@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.voidsendTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements) Sends a title to multiple players with optional prefix.voidsendTitle(@NotNull Collection<org.bukkit.entity.Player> recipients, @NotNull String reference, @NotNull Object... replacements) Sends a title to multiple players.voidsendTitle(@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.voidsendTitle(@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.voidsendTitle(@Nullable org.bukkit.entity.Player recipient, boolean doPrefix, @NotNull String reference, @NotNull Object... replacements) Sends a title to a player with optional prefix.voidsendTitle(@Nullable org.bukkit.entity.Player recipient, @NotNull String reference, @NotNull Object... replacements) Sends a title to a player.voidsendTitle(@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.voidsendTitle(@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.voidvoidsetupMessageSender(@Nullable net.kyori.adventure.platform.bukkit.BukkitAudiences audiences) Sets up the message sender with Adventure support.
-
Constructor Details
-
MessageService
- 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
-
loadPrefix
-
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 keyreplacements- 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 PlaceholderAPIreference- The message keyreplacements- 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 recipientreference- The message keyreplacements- 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 recipientdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 recipientplayer- The player for PlaceholderAPI contextreference- The message keyreplacements- 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 recipientplayer- The player for PlaceholderAPI contextdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 recipientsreference- The message keyreplacements- 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 recipientsdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 recipientsplayer- The player for PlaceholderAPI contextreference- The message keyreplacements- 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 recipientsplayer- The player for PlaceholderAPI contextdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 recipientmessage- 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 recipientmessage- The raw message stringdoPrefix- 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 recipientmessage- 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 recipientmessage- The message componentdoPrefix- 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 recipientsmessage- 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 recipientsmessage- The raw message stringdoPrefix- 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 recipientsmessage- 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 recipientsmessage- The message componentdoPrefix- 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 toreference- The message keyreplacements- 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 todoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 toreference- The message keyreplacements- 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 todoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 tomessage- 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 tomessage- The raw title stringdoPrefix- 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 tomessage- 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 tomessage- The title componentdoPrefix- 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 tomessage- 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 tomessage- The raw title stringdoPrefix- 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 tomessage- 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 tomessage- The title componentdoPrefix- 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 toreference- The message keyreplacements- 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 todoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 toreference- The message keyreplacements- 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 todoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextreference- The message keyreplacements- 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 toplayer- The player for PlaceholderAPI contextdoPrefix- Whether to include the prefixreference- The message keyreplacements- 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 tomessage- 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 tomessage- The raw subtitle stringdoPrefix- 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 tomessage- 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 tomessage- The subtitle componentdoPrefix- 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 tomessage- 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 tomessage- The raw subtitle stringdoPrefix- 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 tomessage- 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 tomessage- The subtitle componentdoPrefix- 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 totitle- The title stringsubTitle- 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 totitle- The title stringsubTitle- The subtitle stringdoPrefix- Whether to include prefix on titledoPrefixOnSub- 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 totitle- The title stringsubTitle- 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 totitle- The title stringsubTitle- The subtitle stringdoPrefix- Whether to include prefix on titledoPrefixOnSub- 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 totitle- The title componentsubTitle- 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 totitle- The title componentsubTitle- The subtitle componentdoPrefix- Whether to include prefix on titledoPrefixOnSub- 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 totitle- The title componentsubTitle- 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 totitle- The title componentsubTitle- The subtitle componentdoPrefix- Whether to include prefix on titledoPrefixOnSub- 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 toreference- The message keyreplacements- 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 tomessage- The raw action bar string
-
reload
public void reload() -
reload
-
getMessageConfig
-
getPrefixComponent
public net.kyori.adventure.text.Component getPrefixComponent() -
getPrefix
-