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 has respawned in a game
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerIngameRespawnEvent
(Player player, Arena arena, boolean givingItems, boolean givingEffects) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
boolean
Returns whether effects will be given to the player respawning.boolean
Returns whether spawn items will be given to the player respawning.void
setGivingEffects
(boolean givingEffects) Set whether or not effects will be given to the player when respawning.void
setGivingItems
(boolean givingItems) Set whether or not spawn items will be given to the player when respawning.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
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
Methods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
PlayerIngameRespawnEvent
-
-
Method Details
-
isGivingItems
public boolean isGivingItems()Returns whether spawn items will be given to the player respawning.- Returns:
- whether spawn items will be given to the player
-
isGivingEffects
public boolean isGivingEffects()Returns whether effects will be given to the player respawning.This only references effects related to the
giveeffects-on-respawn
config.- Returns:
- whether ffects will be given to the player
-
setGivingItems
public 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
-
setGivingEffects
public 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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-