Class PostRelationChangeTeamEvent

java.lang.Object
org.bukkit.event.Event
com.booksaw.betterTeams.customEvents.TeamEvent
com.booksaw.betterTeams.customEvents.post.PostRelationChangeTeamEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PostRelationChangeTeamEvent extends TeamEvent
An event which is called right after the changing of a relation with a Team (ie: ally/neutral)

To modify or cancel the color change, use RelationChangeTeamEvent.

  • Constructor Details

    • PostRelationChangeTeamEvent

      public PostRelationChangeTeamEvent(@NotNull @NotNull Team team, @NotNull @NotNull Team otherTeam, @NotNull @NotNull RelationType previousRelation, @NotNull @NotNull RelationType newRelation)
  • Method Details

    • getHandlerList

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

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

      @NotNull public @NotNull Team getOtherTeam()
    • getPreviousRelation

      @NotNull public @NotNull RelationType getPreviousRelation()
    • getNewRelation

      @NotNull public @NotNull RelationType getNewRelation()