Class PlayerJoinTeamEvent

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

public class PlayerJoinTeamEvent extends org.bukkit.event.Event
This event is called when a player joins a team. This event will also be called when a player creates a 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
     
    org.bukkit.entity.Player
    Get the player who joined the team.
    Get the team.
    int
    Get the id of 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

    • PlayerJoinTeamEvent

      public PlayerJoinTeamEvent()
  • Method Details

    • getTeam

      public Team getTeam()
      Get the team.
      Returns:
      Team
    • getTeamId

      public int getTeamId()
      Get the id of the Team.
      Returns:
      Integer
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player who joined the team.
      Returns:
      Player
    • getHandlers

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