Class LocaleManager
java.lang.Object
dev.esophose.playerparticles.manager.Manager
dev.esophose.playerparticles.manager.LocaleManager
public class LocaleManager extends Manager
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LocaleManager(PlayerParticles playerParticles) -
Method Summary
Modifier and Type Method Description voiddisable()Cleans up the Manager's resourcesjava.lang.StringgetLocaleMessage(java.lang.String messageKey)java.lang.StringgetLocaleMessage(java.lang.String messageKey, StringPlaceholders stringPlaceholders)voidreload()Reloads the Manager's settingsvoidsendCustomMessage(PPlayer pplayer, java.lang.String message)Sends a custom message to a PPlayervoidsendCustomMessage(org.bukkit.command.CommandSender sender, java.lang.String message)Sends a custom message to a CommandSendervoidsendMessage(PPlayer pplayer, java.lang.String messageKey)Sends a message to a PPlayer with the prefixvoidsendMessage(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a PPlayer with the prefix with placeholders appliedvoidsendMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey)Sends a message to a CommandSender with the prefixvoidsendMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a CommandSender with the prefix with placeholders appliedvoidsendSimpleMessage(PPlayer pplayer, java.lang.String messageKey)Sends a message to a PPlayervoidsendSimpleMessage(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a PPlayer with placeholders appliedvoidsendSimpleMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey)Sends a message to a CommandSendervoidsendSimpleMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a CommandSender with placeholders applied
-
Constructor Details
-
Method Details
-
reload
public void reload()Description copied from class:ManagerReloads the Manager's settings -
disable
public void disable()Description copied from class:ManagerCleans up the Manager's resources -
getLocaleMessage
public java.lang.String getLocaleMessage(java.lang.String messageKey) -
getLocaleMessage
public java.lang.String getLocaleMessage(java.lang.String messageKey, StringPlaceholders stringPlaceholders) -
sendMessage
public void sendMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a CommandSender with the prefix with placeholders applied- Parameters:
sender- The CommandSender to send tomessageKey- The message key of the Locale to sendstringPlaceholders- The placeholders to apply
-
sendMessage
public void sendMessage(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a PPlayer with the prefix with placeholders applied- Parameters:
pplayer- The PPlayer to send tomessageKey- The message key of the Locale to sendstringPlaceholders- The placeholders to apply
-
sendMessage
public void sendMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey)Sends a message to a CommandSender with the prefix- Parameters:
sender- The CommandSender to send tomessageKey- The message key of the Locale to send
-
sendMessage
Sends a message to a PPlayer with the prefix- Parameters:
pplayer- The PPlayer to send tomessageKey- The message key of the Locale to send
-
sendSimpleMessage
public void sendSimpleMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a CommandSender with placeholders applied- Parameters:
sender- The CommandSender to send tomessageKey- The message key of the Locale to sendstringPlaceholders- The placeholders to apply
-
sendSimpleMessage
public void sendSimpleMessage(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)Sends a message to a PPlayer with placeholders applied- Parameters:
pplayer- The PPlayer to send tomessageKey- The message key of the Locale to sendstringPlaceholders- The placeholders to apply
-
sendSimpleMessage
public void sendSimpleMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey)Sends a message to a CommandSender- Parameters:
sender- The CommandSender to send tomessageKey- The message key of the Locale to send
-
sendSimpleMessage
Sends a message to a PPlayer- Parameters:
pplayer- The PPlayer to send tomessageKey- The message key of the Locale to send
-
sendCustomMessage
public void sendCustomMessage(org.bukkit.command.CommandSender sender, java.lang.String message)Sends a custom message to a CommandSender- Parameters:
sender- The CommandSender to send tomessage- The message to send
-
sendCustomMessage
Sends a custom message to a PPlayer- Parameters:
pplayer- The PPlayer to send tomessage- The message to send
-