Class LanguageService

java.lang.Object
com.zetaplugins.essentialz.util.LanguageService

public class LanguageService extends Object
  • Field Details

    • defaultLangs

      public static final List<String> defaultLangs
  • Constructor Details

    • LanguageService

      public LanguageService(EssentialZ plugin)
  • Method Details

    • init

      public void init()
    • 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