Class VelocityPartiesPlayerPreTeleportEvent

    • Constructor Detail

      • VelocityPartiesPlayerPreTeleportEvent

        public VelocityPartiesPlayerPreTeleportEvent​(PartyPlayer player,
                                                     Party party,
                                                     com.velocitypowered.api.proxy.server.RegisteredServer destination)
    • Method Detail

      • 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