Class PlayerBaseLeaveEvent

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

public class PlayerBaseLeaveEvent 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

    Constructors
    Constructor
    Description
    PlayerBaseLeaveEvent(org.bukkit.entity.Player p, ITeam team)
    Called when a player leaves a team base.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Get the player that leaved the base
    Get the team owing the exited base

    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
  • Constructor Details

    • PlayerBaseLeaveEvent

      public PlayerBaseLeaveEvent(org.bukkit.entity.Player p, ITeam team)
      Called when a player leaves a team base. Called when the distance between the player and a team's bed is greater than islandRadius
  • Method Details

    • getTeam

      public ITeam getTeam()
      Get the team owing the exited base
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player that leaved the base
    • getHandlers

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

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