Class LanguageManager

java.lang.Object
rocks.gravili.notquests.paper.managers.LanguageManager

public class LanguageManager extends Object
  • Constructor Details

    • LanguageManager

      public LanguageManager(NotQuests main)
  • Method Details

    • loadMissingDefaultLanguageFiles

      public void loadMissingDefaultLanguageFiles()
    • loadLanguageConfig

      public final void loadLanguageConfig()
      Load language configs
    • setupDefaultStrings

      public boolean setupDefaultStrings()
    • getLanguageConfig

      public final org.bukkit.configuration.file.FileConfiguration getLanguageConfig()
      This will return the language FileConfiguration object
    • getComponent

      public final net.kyori.adventure.text.Component getComponent(String languageString, org.bukkit.entity.Player targetPlayer, Object... internalPlaceholderObjects)
    • getComponentList

      public final List<net.kyori.adventure.text.Component> getComponentList(String languageString, org.bukkit.entity.Player targetPlayer, Object... internalPlaceholderObjects)
    • getString

      public final String getString(String languageString, org.bukkit.entity.Player targetPlayer, Object... internalPlaceholderObjects)
    • getStringList

      public final List<String> getStringList(String languageString, org.bukkit.entity.Player targetPlayer, Object... internalPlaceholderObjects)
    • applyInternalPlaceholders

      public List<String> applyInternalPlaceholders(List<String> initialMessage, Object... internalPlaceholderObjects)
    • applyInternalPlaceholders

      public String applyInternalPlaceholders(String initialMessage, Object... internalPlaceholderObjects)
    • applySpecial

      public List<String> applySpecial(List<String> initialMessage)
    • applySpecial

      public String applySpecial(String initialMessage)
    • applyColor

      public String applyColor(String message)
    • saveLanguageConfig

      public void saveLanguageConfig()
      This will try to save the language configuration file with the data which is currently in the languageConfig FileConfiguration object.