public class VelocityPartiesPlayerPreTeleportEvent extends VelocityPartiesEvent implements IPlayerPreTeleportEvent
Constructor and Description |
---|
VelocityPartiesPlayerPreTeleportEvent(PartyPlayer player,
Party party,
com.velocitypowered.api.proxy.server.RegisteredServer destination) |
Modifier and Type | Method and Description |
---|---|
@NotNull com.velocitypowered.api.proxy.server.RegisteredServer |
getDestination()
Get the destination as RegisteredServer
|
@NotNull Party |
getParty()
Get the party
|
@NotNull PartyPlayer |
getPartyPlayer()
Get the player who is getting teleported
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
getApi, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public VelocityPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, com.velocitypowered.api.proxy.server.RegisteredServer destination)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreTeleportEvent
getPartyPlayer
in interface IPlayerPreTeleportEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPreTeleportEvent
getParty
in interface IPlayerPreTeleportEvent
Party
@NotNull public @NotNull com.velocitypowered.api.proxy.server.RegisteredServer getDestination()
RegisteredServer
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.