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 void
disable()
Cleans up the Manager's resourcesjava.lang.String
getLocaleMessage(java.lang.String messageKey)
java.lang.String
getLocaleMessage(java.lang.String messageKey, StringPlaceholders stringPlaceholders)
void
reload()
Reloads the Manager's settingsvoid
sendCustomMessage(PPlayer pplayer, java.lang.String message)
Sends a custom message to a PPlayervoid
sendCustomMessage(org.bukkit.command.CommandSender sender, java.lang.String message)
Sends a custom message to a CommandSendervoid
sendMessage(PPlayer pplayer, java.lang.String messageKey)
Sends a message to a PPlayer with the prefixvoid
sendMessage(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)
Sends a message to a PPlayer with the prefix with placeholders appliedvoid
sendMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey)
Sends a message to a CommandSender with the prefixvoid
sendMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey, StringPlaceholders stringPlaceholders)
Sends a message to a CommandSender with the prefix with placeholders appliedvoid
sendSimpleMessage(PPlayer pplayer, java.lang.String messageKey)
Sends a message to a PPlayervoid
sendSimpleMessage(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)
Sends a message to a PPlayer with placeholders appliedvoid
sendSimpleMessage(org.bukkit.command.CommandSender sender, java.lang.String messageKey)
Sends a message to a CommandSendervoid
sendSimpleMessage(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:Manager
Reloads the Manager's settings -
disable
public void disable()Description copied from class:Manager
Cleans 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
-