Class PlayerBaseEnterEvent

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

public class PlayerBaseEnterEvent 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
    PlayerBaseEnterEvent(org.bukkit.entity.Player p, ITeam team)
    Called when a player enters 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 entered the base
    Get the team owing the entered 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

    • PlayerBaseEnterEvent

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

    • getTeam

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

      public org.bukkit.entity.Player getPlayer()
      Get the player that entered 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()