Class LocaleManager

java.lang.Object
dev.esophose.playerparticles.manager.Manager
dev.esophose.playerparticles.manager.LocaleManager

public class LocaleManager
extends Manager
  • Field Summary

    Fields inherited from class dev.esophose.playerparticles.manager.Manager

    playerParticles
  • Constructor Summary

    Constructors 
    Constructor Description
    LocaleManager​(PlayerParticles playerParticles)  
  • Method Summary

    Modifier and Type Method Description
    void disable()
    Cleans up the Manager's resources
    java.lang.String getLocaleMessage​(java.lang.String messageKey)  
    java.lang.String getLocaleMessage​(java.lang.String messageKey, StringPlaceholders stringPlaceholders)  
    void reload()
    Reloads the Manager's settings
    void sendCustomMessage​(PPlayer pplayer, java.lang.String message)
    Sends a custom message to a PPlayer
    void sendCustomMessage​(org.bukkit.command.CommandSender sender, java.lang.String message)
    Sends a custom message to a CommandSender
    void sendMessage​(PPlayer pplayer, java.lang.String messageKey)
    Sends a message to a PPlayer with the prefix
    void sendMessage​(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)
    Sends a message to a PPlayer with the prefix with placeholders applied
    void sendMessage​(org.bukkit.command.CommandSender sender, java.lang.String messageKey)
    Sends a message to a CommandSender with the prefix
    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
    void sendSimpleMessage​(PPlayer pplayer, java.lang.String messageKey)
    Sends a message to a PPlayer
    void sendSimpleMessage​(PPlayer pplayer, java.lang.String messageKey, StringPlaceholders stringPlaceholders)
    Sends a message to a PPlayer with placeholders applied
    void sendSimpleMessage​(org.bukkit.command.CommandSender sender, java.lang.String messageKey)
    Sends a message to a CommandSender
    void sendSimpleMessage​(org.bukkit.command.CommandSender sender, java.lang.String messageKey, StringPlaceholders stringPlaceholders)
    Sends a message to a CommandSender with placeholders applied

    Methods inherited from class java.lang.Object

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

  • Method Details

    • reload

      public void reload()
      Description copied from class: Manager
      Reloads the Manager's settings
      Specified by:
      reload in class Manager
    • disable

      public void disable()
      Description copied from class: Manager
      Cleans up the Manager's resources
      Specified by:
      disable in class Manager
    • 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 to
      messageKey - The message key of the Locale to send
      stringPlaceholders - 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 to
      messageKey - The message key of the Locale to send
      stringPlaceholders - 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 to
      messageKey - The message key of the Locale to send
    • sendMessage

      public void sendMessage​(PPlayer pplayer, java.lang.String messageKey)
      Sends a message to a PPlayer with the prefix
      Parameters:
      pplayer - The PPlayer to send to
      messageKey - 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 to
      messageKey - The message key of the Locale to send
      stringPlaceholders - 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 to
      messageKey - The message key of the Locale to send
      stringPlaceholders - 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 to
      messageKey - The message key of the Locale to send
    • sendSimpleMessage

      public void sendSimpleMessage​(PPlayer pplayer, java.lang.String messageKey)
      Sends a message to a PPlayer
      Parameters:
      pplayer - The PPlayer to send to
      messageKey - 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 to
      message - The message to send
    • sendCustomMessage

      public void sendCustomMessage​(PPlayer pplayer, java.lang.String message)
      Sends a custom message to a PPlayer
      Parameters:
      pplayer - The PPlayer to send to
      message - The message to send