Class LocalizationService

java.lang.Object
com.zetaplugins.timberz.service.LocalizationService

public final class LocalizationService extends Object
  • Field Details

    • defaultLangs

      public static final List<String> defaultLangs
  • Constructor Details

    • LocalizationService

      public LocalizationService(TimberZ plugin)
  • Method Details

    • reload

      public void reload()
    • getString

      public String getString(String key)
      Get a string from the language file
      Parameters:
      key - The key to get the string for
      Returns:
      The string from the language file
    • getString

      public String getString(String key, String fallback)
      Get a string from the language file with a fallback
      Parameters:
      key - The key to get the string for
      fallback - The fallback string
      Returns:
      The string from the language file or the fallback
    • getStringList

      public List<String> getStringList(String key)