Package org.lushplugins.chatcolorhandler
Class ChatColorHandler
java.lang.Object
org.lushplugins.chatcolorhandler.ChatColorHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
broadcastMessage
(@NotNull String... messages) Sends all online players multiple messagesstatic void
broadcastMessage
(@Nullable String message) Sends all online players a messageprotected static void
protected static void
init()
static void
sendActionBarMessage
(@NotNull org.bukkit.entity.Player[] players, @Nullable String message) Sends multiple players an ACTION_BAR messagestatic void
sendActionBarMessage
(@NotNull org.bukkit.entity.Player player, @Nullable String message) Sends a player an ACTION_BAR messagestatic void
sendMessage
(@NotNull org.bukkit.command.CommandSender recipient, @Nullable String message) Sends a recipient a messagestatic void
sendMessage
(@NotNull org.bukkit.command.CommandSender recipient, @Nullable String... messages) Sends a recipient multiple messagesstatic void
sendMessage
(org.bukkit.command.CommandSender[] recipients, @Nullable String message) Sends multiple recipients a messagestatic void
sendMessage
(org.bukkit.command.CommandSender[] recipients, @Nullable String... messages) Sends multiple recipients, multiple messagesstatic void
Send multiple players a TITLE messagestatic void
sendTitle
(@NotNull org.bukkit.entity.Player[] players, @Nullable String title, @Nullable String subtitle) Send multiple players a TITLE messagestatic void
sendTitle
(@NotNull org.bukkit.entity.Player[] players, @Nullable String title, @Nullable String subtitle, int fadeIn, int fadeOut) Send multiple players a TITLE messagestatic void
sendTitle
(@NotNull org.bukkit.entity.Player[] players, @Nullable String title, @Nullable String subtitle, int fadeIn, int stay, int fadeOut) Send multiple players a TITLE messagestatic void
Send a player a TITLE messagestatic void
sendTitle
(@NotNull org.bukkit.entity.Player player, @Nullable String title, @Nullable String subtitle) Send a player a TITLE messagestatic void
sendTitle
(@NotNull org.bukkit.entity.Player player, @Nullable String title, @Nullable String subtitle, int fadeIn, int fadeOut) Send a player a TITLE messagestatic void
sendTitle
(@NotNull org.bukkit.entity.Player player, @Nullable String title, @Nullable String subtitle, int fadeIn, int stay, int fadeOut) Send a player a TITLE messagestatic org.lushplugins.chatcolorhandler.ChatColorHandlerSettings
settings()
static String
stripColor
(@Nullable String string) Strips colour from stringtranslate
(@NotNull Collection<String> strings) Translates a collection of strings to allow for hex colours and placeholderstranslate
(@NotNull Collection<String> strings, List<Parser> parsers) Translates a collection of strings to allow for hex colours and placeholderstranslate
(@NotNull Collection<String> strings, org.bukkit.entity.Player player) Translates a collection of strings to allow for hex colours and placeholderstranslate
(@NotNull Collection<String> strings, org.bukkit.entity.Player player, List<Parser> parsers) Translates a collection of strings to allow for hex colours and placeholdersstatic String
Translates a string to allow for hex colours and placeholdersstatic String
Translates a string to allow for hex colours and placeholdersstatic String
Translates a string to allow for hex colours and placeholdersstatic String
Translates a string to allow for hex colours and placeholders
-
Method Details
-
init
protected static void init() -
translate
Translates a string to allow for hex colours and placeholders- Parameters:
string
- String to be translated
-
translate
public static String translate(@Nullable @Nullable String string, @NotNull @NotNull List<Parser> parsers) Translates a string to allow for hex colours and placeholders- Parameters:
string
- String to be translatedparsers
- Parsers which this message won't be parsed through
-
translate
Translates a string to allow for hex colours and placeholders- Parameters:
string
- String to be translatedplayer
- Player to parse placeholders for
-
translate
public static String translate(@Nullable @Nullable String string, org.bukkit.entity.Player player, List<Parser> parsers) Translates a string to allow for hex colours and placeholders- Parameters:
string
- String to be translatedplayer
- Player to parse placeholders forparsers
- Parsers which this message will be parsed through
-
translate
Translates a collection of strings to allow for hex colours and placeholders- Parameters:
strings
- Strings to be translated
-
translate
public static List<String> translate(@NotNull @NotNull Collection<String> strings, List<Parser> parsers) Translates a collection of strings to allow for hex colours and placeholders- Parameters:
strings
- Strings to be translatedparsers
- Parsers which this message will be parsed through
-
translate
public static List<String> translate(@NotNull @NotNull Collection<String> strings, org.bukkit.entity.Player player) Translates a collection of strings to allow for hex colours and placeholders- Parameters:
strings
- Strings to be translatedplayer
- Player to parse placeholders for
-
translate
public static List<String> translate(@NotNull @NotNull Collection<String> strings, org.bukkit.entity.Player player, List<Parser> parsers) Translates a collection of strings to allow for hex colours and placeholders- Parameters:
strings
- Strings to be translatedplayer
- Player to parse placeholders forparsers
- Parsers which this message will be parsed through
-
stripColor
Strips colour from string- Parameters:
string
- String to be converted
-
sendMessage
public static void sendMessage(@NotNull @NotNull org.bukkit.command.CommandSender recipient, @Nullable @Nullable String message) Sends a recipient a message- Parameters:
recipient
- Sender to receive this messagemessage
- Message to be displayed
-
sendMessage
public static void sendMessage(@NotNull @NotNull org.bukkit.command.CommandSender recipient, @Nullable @Nullable String... messages) Sends a recipient multiple messages- Parameters:
recipient
- Sender to receive messagemessages
- Messages to be displayed
-
sendMessage
public static void sendMessage(org.bukkit.command.CommandSender[] recipients, @Nullable @Nullable String message) Sends multiple recipients a message- Parameters:
recipients
- Senders to receive messagemessage
- Message to be displayed
-
sendMessage
public static void sendMessage(org.bukkit.command.CommandSender[] recipients, @Nullable @Nullable String... messages) Sends multiple recipients, multiple messages- Parameters:
recipients
- Senders to receive this messagemessages
- Messages to be displayed
-
broadcastMessage
Sends all online players a message- Parameters:
message
- Message to be displayed
-
broadcastMessage
Sends all online players multiple messages- Parameters:
messages
- Messages to be displayed
-
sendActionBarMessage
public static void sendActionBarMessage(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable String message) Sends a player an ACTION_BAR message- Parameters:
player
- Player to receive this action bar messagemessage
- Message to be displayed
-
sendActionBarMessage
public static void sendActionBarMessage(@NotNull @NotNull org.bukkit.entity.Player[] players, @Nullable @Nullable String message) Sends multiple players an ACTION_BAR message- Parameters:
players
- Players to receive this action bar messagemessage
- Message to be displayed
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable String title) Send a player a TITLE message- Parameters:
player
- Player to receive this titletitle
- Title to be displayed
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable String title, @Nullable @Nullable String subtitle) Send a player a TITLE message- Parameters:
player
- Player to receive this titletitle
- Title to be displayedsubtitle
- Subtitle to be displayed
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable String title, @Nullable @Nullable String subtitle, int fadeIn, int fadeOut) Send a player a TITLE message- Parameters:
player
- Player to receive this titletitle
- Title to be displayedsubtitle
- Subtitle to be displayedfadeIn
- Duration for title to fade infadeOut
- Duration for title to fade out
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable String title, @Nullable @Nullable String subtitle, int fadeIn, int stay, int fadeOut) Send a player a TITLE message- Parameters:
player
- Player to receive this titletitle
- Title to be displayedsubtitle
- Subtitle to be displayedfadeIn
- Duration for title to fade instay
- Duration for title to appearfadeOut
- Duration for title to fade out
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player[] players, @Nullable @Nullable String title) Send multiple players a TITLE message- Parameters:
players
- Player to receive this titletitle
- Title to be displayed
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player[] players, @Nullable @Nullable String title, @Nullable @Nullable String subtitle) Send multiple players a TITLE message- Parameters:
players
- Player to receive this titletitle
- Title to be displayedsubtitle
- Subtitle to be displayed
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player[] players, @Nullable @Nullable String title, @Nullable @Nullable String subtitle, int fadeIn, int fadeOut) Send multiple players a TITLE message- Parameters:
players
- Player to receive this titletitle
- Title to be displayedsubtitle
- Subtitle to be displayedfadeIn
- Duration for title to fade infadeOut
- Duration for title to fade out
-
sendTitle
public static void sendTitle(@NotNull @NotNull org.bukkit.entity.Player[] players, @Nullable @Nullable String title, @Nullable @Nullable String subtitle, int fadeIn, int stay, int fadeOut) Send multiple players a TITLE message- Parameters:
players
- Player to receive this titletitle
- Title to be displayedsubtitle
- Subtitle to be displayedfadeIn
- Duration for title to fade instay
- Duration for title to appearfadeOut
- Duration for title to fade out
-
settings
public static org.lushplugins.chatcolorhandler.ChatColorHandlerSettings settings() -
debugLog
-