Class LanguageUtils

java.lang.Object
nl.mtvehicles.core.infrastructure.utils.LanguageUtils

public class LanguageUtils extends Object
Methods for changing plugin's language
  • Field Details

    • languageCheck

      public static HashMap<UUID,​Boolean> languageCheck
      Contains information about whether player has language GUI opened
  • Constructor Details

    • LanguageUtils

      public LanguageUtils()
  • Method Details

    • openLanguageGUI

      public static void openLanguageGUI(org.bukkit.entity.Player p)
      Open the language GUI selection to a player
    • changeLanguageMenu

      public static void changeLanguageMenu(org.bukkit.entity.Player p, int clickedSlot)
      Called when a player clicks an item in /vehicle language menu, calls changeLanguage(Player, Language).
      Parameters:
      p - Player who clicked
      clickedSlot - Clicked slot (= ordinal of Language)
    • changeLanguage

      public static void changeLanguage(org.bukkit.entity.Player p, Language language)
      Change language of the plugin
      Parameters:
      p - Player who is changing the language
      language - New language (Language enum)