Class PlayerBedBreakEvent

java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerBedBreakEvent

public class PlayerBedBreakEvent extends org.bukkit.event.Event
  • 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

      public ITeam getPlayerTeam()
      Get the player team.
    • getVictimTeam

      public ITeam getVictimTeam()
      Get the team who got the bed destroyed.
    • getArena

      public IArena getArena()
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
    • getMessage

      public Function<org.bukkit.entity.Player,String> getMessage()
      Get chat message.
    • setMessage

      public void setMessage(Function<org.bukkit.entity.Player,String> message)
      Set chat message.
    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()
    • getTitle

      public Function<org.bukkit.entity.Player,String> getTitle()
    • setTitle

      public void setTitle(Function<org.bukkit.entity.Player,String> title)
    • getSubTitle

      public Function<org.bukkit.entity.Player,String> getSubTitle()
    • setSubTitle

      public void setSubTitle(Function<org.bukkit.entity.Player,String> subTitle)