Class PlayerLeaveTeamEvent

java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.PlayerLeaveTeamEvent

public class PlayerLeaveTeamEvent extends org.bukkit.event.Event
This event is called when the player leaves the team.
Since:
API v0.4-ALPHA
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.event.HandlerList
     
    Get the player's old team.
    int
    Get the player's old team id.
    org.bukkit.OfflinePlayer
    Get the player who has left the team.

    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

    • PlayerLeaveTeamEvent

      public PlayerLeaveTeamEvent()
  • Method Details

    • getOldTeam

      public Team getOldTeam()
      Get the player's old team.
      Returns:
      The old Team
    • getOldTeamId

      public int getOldTeamId()
      Get the player's old team id.
      Returns:
      Integer
    • getPlayer

      public org.bukkit.OfflinePlayer getPlayer()
      Get the player who has left the team.
      Returns:
      OfflinePlayer
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event