Class TeamCreateEvent

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

public class TeamCreateEvent extends org.bukkit.event.Event
This event is called when a team is created.
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 owner of the new team.
    Get the new team.
    int
    Get the new team id.

    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

    • TeamCreateEvent

      public TeamCreateEvent()
  • Method Details

    • getTeam

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

      public int getTeamId()
      Get the new team id.
      Returns:
      Integer
    • getOwner

      public org.bukkit.entity.Player getOwner()
      Get the owner of the new team.
      Returns:
      Player
    • getHandlers

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