Class VelocityPartiesPlayerPreTeleportEvent

java.lang.Object
com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
com.alessiodp.parties.api.events.velocity.player.VelocityPartiesPlayerPreTeleportEvent
All Implemented Interfaces:
Cancellable, IPlayerPreTeleportEvent, PartiesEvent

public class VelocityPartiesPlayerPreTeleportEvent extends VelocityPartiesEvent implements IPlayerPreTeleportEvent
  • Constructor Details

    • VelocityPartiesPlayerPreTeleportEvent

      public VelocityPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, com.velocitypowered.api.proxy.server.RegisteredServer 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
    • getDestination

      @NotNull public @NotNull com.velocitypowered.api.proxy.server.RegisteredServer getDestination()
      Get the destination as RegisteredServer
      Returns:
      the RegisteredServer
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Is the event cancelled?
      Specified by:
      isCancelled in interface 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
      Parameters:
      cancel - true to cancel