public class BungeePartiesPlayerPreHomeEvent extends BungeePartiesEvent implements IPlayerPreHomeEvent
Constructor and Description |
---|
BungeePartiesPlayerPreHomeEvent(PartyPlayer player,
Party party,
PartyHome home) |
Modifier and Type | Method and Description |
---|---|
@NotNull PartyHome |
getHome()
Get the destination home
|
@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 BungeePartiesPlayerPreHomeEvent(PartyPlayer player, Party party, PartyHome home)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreHomeEvent
getPartyPlayer
in interface IPlayerPreHomeEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPreHomeEvent
getParty
in interface IPlayerPreHomeEvent
Party
@NotNull public @NotNull PartyHome getHome()
IPlayerPreHomeEvent
getHome
in interface IPlayerPreHomeEvent
PartyHome
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.