Class LocaleConfig

java.lang.Object
adhdmc.simplepms.config.LocaleConfig

public class LocaleConfig extends Object
  • Field Details

    • instance

      private static LocaleConfig instance
    • fileName

      private final String fileName
      See Also:
    • localeFile

      private final File localeFile
    • localeConfig

      private final org.bukkit.configuration.file.FileConfiguration localeConfig
  • Constructor Details

    • LocaleConfig

      private LocaleConfig()
  • Method Details

    • getInstance

      public static LocaleConfig getInstance()
      Gets the LocaleConfig instance, instantiates it if it has not been already
      Returns:
      LocaleConfig
    • getLocale

      public org.bukkit.configuration.file.FileConfiguration getLocale()
      gets the Locale config
      Returns:
      FileConfiguration
    • reloadLocale

      public void reloadLocale()
      Reloads all locale messages. Logs errors to console if any are found