Package adhdmc.simplepms.config
Class LocaleConfig
java.lang.Object
adhdmc.simplepms.config.LocaleConfig
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private static LocaleConfig
private final org.bukkit.configuration.file.FileConfiguration
private final File
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleConfig
Gets the LocaleConfig instance, instantiates it if it has not been alreadyorg.bukkit.configuration.file.FileConfiguration
gets the Locale configvoid
Reloads all locale messages.
-
Field Details
-
instance
-
fileName
- See Also:
-
localeFile
-
localeConfig
private final org.bukkit.configuration.file.FileConfiguration localeConfig
-
-
Constructor Details
-
LocaleConfig
private LocaleConfig()
-
-
Method Details
-
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
-