Class LanguageManager

java.lang.Object
org.strassburger.lifestealz.util.LanguageManager

public class LanguageManager extends Object
  • Field Details

    • defaultLangs

      public static final List<String> defaultLangs
  • Constructor Details

    • LanguageManager

      public LanguageManager(LifeStealZ 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