public class BungeePartiesPlayerPreTeleportEvent extends BungeePartiesEvent implements IPlayerPreTeleportEvent
| Constructor and Description |
|---|
BungeePartiesPlayerPreTeleportEvent(PartyPlayer player,
Party party,
net.md_5.bungee.api.config.ServerInfo destination) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull net.md_5.bungee.api.config.ServerInfo |
getDestination()
Get the destination as ServerInfo
|
@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, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic BungeePartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, net.md_5.bungee.api.config.ServerInfo destination)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreTeleportEventgetPartyPlayer in interface IPlayerPreTeleportEventPartyPlayer@NotNull public @NotNull Party getParty()
IPlayerPreTeleportEventgetParty in interface IPlayerPreTeleportEventParty@NotNull public @NotNull net.md_5.bungee.api.config.ServerInfo getDestination()
ServerInfopublic boolean isCancelled()
CancellableisCancelled in interface Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true to cancelCopyright © 2022. All rights reserved.