Class PlayerIngameRespawnEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerIngameRespawnEvent
- All Implemented Interfaces:
- ArenaEvent
Gets called when a player is about to be respawned during a match
 
This event gets called right before the player's respawning is being processed, in which he will receive all the items, be teleported, etc.
This refers to the post-death spectator (5 seconds wait) respawn, not strictly the death respawn.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerIngameRespawnEvent(Player player, Arena arena, boolean givingItems, boolean givingEffects, Location spawnLocation) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListGet the location where the player will respawn.booleanReturns whether effects will be given to the player respawning.booleanReturns whether spawn items will be given to the player respawning.voidsetGivingEffects(boolean givingEffects) Set whether or not effects will be given to the player when respawning.voidsetGivingItems(boolean givingItems) Set whether or not spawn items will be given to the player when respawning.voidsetSpawnLocation(Location spawnLocation) Set the location where the player will respawn.Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEventgetArena
- 
Constructor Details- 
PlayerIngameRespawnEvent
 
- 
- 
Method Details- 
isGivingItemspublic boolean isGivingItems()Returns whether spawn items will be given to the player respawning.- Returns:
- whether spawn items will be given to the player
 
- 
isGivingEffectspublic boolean isGivingEffects()Returns whether effects will be given to the player respawning.This only references effects related to the giveeffects-on-respawnconfig.- Returns:
- whether ffects will be given to the player
 
- 
setGivingItemspublic void setGivingItems(boolean givingItems) Set whether or not spawn items will be given to the player when respawning.- Parameters:
- givingItems- whether or not spawn items will be given to the player
 
- 
setGivingEffectspublic void setGivingEffects(boolean givingEffects) Set whether or not effects will be given to the player when respawning.- Parameters:
- givingEffects- whether or not effects will be given to the player
 
- 
getSpawnLocationGet the location where the player will respawn.The returned instance is mutable and changing its values will change the respawn location, even without calling setSpawnLocation(Location).- Returns:
- the location where the player will respawn
 
- 
setSpawnLocationSet the location where the player will respawn.- Parameters:
- spawnLocation- the location where the player will respawn
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-