Class BukkitPartiesPlayerPreTeleportEvent

    • Constructor Detail

      • BukkitPartiesPlayerPreTeleportEvent

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

      • 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