Class BukkitPartiesPlayerPreTeleportEvent

java.lang.Object
org.bukkit.event.Event
com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
com.alessiodp.parties.api.events.bukkit.player.BukkitPartiesPlayerPreTeleportEvent
All Implemented Interfaces:
Cancellable, IPlayerPreTeleportEvent, PartiesEvent, org.bukkit.event.Cancellable

public class BukkitPartiesPlayerPreTeleportEvent extends BukkitPartiesEvent implements IPlayerPreTeleportEvent, org.bukkit.event.Cancellable
  • Constructor Details

    • BukkitPartiesPlayerPreTeleportEvent

      public BukkitPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, org.bukkit.Location destination)
  • Method Details

    • getPartyPlayer

      @NotNull public @NotNull PartyPlayer getPartyPlayer()
      Description copied from interface: IPlayerPreTeleportEvent
      Get the player who is getting teleported
      Specified by:
      getPartyPlayer in interface IPlayerPreTeleportEvent
      Returns:
      the PartyPlayer
    • getParty

      @NotNull public @NotNull Party getParty()
      Description copied from interface: IPlayerPreTeleportEvent
      Get the party
      Specified by:
      getParty in interface IPlayerPreTeleportEvent
      Returns:
      the Party
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Is the event cancelled?
      Specified by:
      isCancelled in interface Cancellable
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if the event is cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: Cancellable
      Set the event as cancelled
      Specified by:
      setCancelled in interface Cancellable
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      cancel - true to cancel
    • getDestination

      @NotNull public @NotNull org.bukkit.Location getDestination()
      Get the destination as Location
      Returns:
      the Location