Class PlayerLangChangeEvent

java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerLangChangeEvent

public class PlayerLangChangeEvent extends org.bukkit.event.Event
  • Constructor Details

    • PlayerLangChangeEvent

      public PlayerLangChangeEvent(org.bukkit.entity.Player p, String oldLang, String newLang)
      Called when a Player changes his language
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Check if event is cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
      Change value
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get Player
    • getOldLang

      public String getOldLang()
      Get old Language iso
    • getNewLang

      public String getNewLang()
      Get new Language iso
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()