Class PlayerLangChangeEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.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
-
Constructor Summary
ConstructorDescriptionPlayerLangChangeEvent
(org.bukkit.entity.Player p, String oldLang, String newLang) Called when a Player changes his language -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Get new Language isoGet old Language isoorg.bukkit.entity.Player
Get Playerboolean
Check if event is cancelledvoid
setCancelled
(boolean cancelled) Change valueMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerLangChangeEvent
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
Get old Language iso -
getNewLang
Get new Language iso -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-