Class PlayerLangChangeEvent

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

public class PlayerLangChangeEvent
extends org.bukkit.event.Event
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private boolean cancelled  
    private static org.bukkit.event.HandlerList HANDLERS  
    private Language newLang  
    private Language oldLang  
    private org.bukkit.entity.Player player  
  • Constructor Summary

    Constructors 
    Constructor Description
    PlayerLangChangeEvent​(org.bukkit.entity.Player p, Language oldLang, Language newLang)
    Called when a Player changes his language.
  • Method Summary

    Modifier and Type Method Description
    static org.bukkit.event.HandlerList getHandlerList()
    Bukkit stuff.
    org.bukkit.event.HandlerList getHandlers()
    Bukkit stuff.
    Language getNewLang()
    Get new Language.
    Language getOldLang()
    Get old Language.
    org.bukkit.entity.Player getPlayer()
    Get Player.
    boolean isCancelled()
    Check if event is cancelled.
    void setCancelled​(boolean cancelled)
    Change value.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PlayerLangChangeEvent

      public PlayerLangChangeEvent​(org.bukkit.entity.Player p, Language oldLang, Language newLang)
      Called when a Player changes his language.
      Parameters:
      p - target player.
      oldLang - old language.
      newLang - new language.
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Check if event is cancelled.
      Returns:
      true if canceled.
    • setCancelled

      public void setCancelled​(boolean cancelled)
      Change value.
      Parameters:
      cancelled - cancel event.
    • getPlayer

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

      public Language getOldLang()
      Get old Language.
      Returns:
      old language.
    • getNewLang

      public Language getNewLang()
      Get new Language.
      Returns:
      new language.
    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()
      Bukkit stuff.
      Returns:
      handlers.