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 Summary
ConstructorsConstructorDescriptionVelocityPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, com.velocitypowered.api.proxy.server.RegisteredServer destination) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.velocitypowered.api.proxy.server.RegisteredServerGet the destination as RegisteredServer@NotNull PartygetParty()Get the party@NotNull PartyPlayerGet the player who is getting teleportedbooleanIs the event cancelled?voidsetCancelled(boolean cancel) Set the event as cancelledMethods inherited from class com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
getApi, setApiMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Constructor Details
-
VelocityPartiesPlayerPreTeleportEvent
public VelocityPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, com.velocitypowered.api.proxy.server.RegisteredServer destination)
-
-
Method Details
-
getPartyPlayer
Description copied from interface:IPlayerPreTeleportEventGet the player who is getting teleported- Specified by:
getPartyPlayerin interfaceIPlayerPreTeleportEvent- Returns:
- the
PartyPlayer
-
getParty
Description copied from interface:IPlayerPreTeleportEventGet the party- Specified by:
getPartyin interfaceIPlayerPreTeleportEvent- 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:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel
-