Class PlayerBedBreakEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerBedBreakEvent
public class PlayerBedBreakEvent
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
ConstructorDescriptionPlayerBedBreakEvent
(org.bukkit.entity.Player p, ITeam playerTeam, ITeam victimTeam, IArena arena, Function<org.bukkit.entity.Player, String> message, Function<org.bukkit.entity.Player, String> title, Function<org.bukkit.entity.Player, String> subTitle) Called when a bed gets destroyed. -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Get chat message.org.bukkit.entity.Player
Get the player team.getTitle()
Get the team who got the bed destroyed.void
setMessage
(Function<org.bukkit.entity.Player, String> message) Set chat message.void
setSubTitle
(Function<org.bukkit.entity.Player, String> subTitle) void
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerBedBreakEvent
public PlayerBedBreakEvent(org.bukkit.entity.Player p, ITeam playerTeam, ITeam victimTeam, IArena arena, Function<org.bukkit.entity.Player, String> message, Function<org.bukkit.entity.Player, String> title, Function<org.bukkit.entity.Player, String> subTitle) Called when a bed gets destroyed.
-
-
Method Details
-
getPlayerTeam
Get the player team. -
getVictimTeam
Get the team who got the bed destroyed. -
getArena
-
getPlayer
public org.bukkit.entity.Player getPlayer() -
getMessage
Get chat message. -
setMessage
Set chat message. -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getTitle
-
setTitle
-
getSubTitle
-
setSubTitle
-