Class BungeePartiesPlayerPreHomeEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
com.alessiodp.parties.api.events.bungee.player.BungeePartiesPlayerPreHomeEvent
- All Implemented Interfaces:
Cancellable,IPlayerPreHomeEvent,PartiesEvent
public class BungeePartiesPlayerPreHomeEvent
extends BungeePartiesEvent
implements IPlayerPreHomeEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBungeePartiesPlayerPreHomeEvent(PartyPlayer player, Party party, PartyHome home) -
Method Summary
Modifier and TypeMethodDescription@NotNull PartyHomegetHome()Get the destination home@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.bungee.BungeePartiesEvent
getApi, setApiMethods inherited from class net.md_5.bungee.api.plugin.Event
postCallMethods 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
-
BungeePartiesPlayerPreHomeEvent
-
-
Method Details
-
getPartyPlayer
Description copied from interface:IPlayerPreHomeEventGet the player who is getting teleported- Specified by:
getPartyPlayerin interfaceIPlayerPreHomeEvent- Returns:
- the
PartyPlayer
-
getParty
Description copied from interface:IPlayerPreHomeEventGet the party- Specified by:
getPartyin interfaceIPlayerPreHomeEvent- Returns:
- the
Party
-
getHome
Description copied from interface:IPlayerPreHomeEventGet the destination home- Specified by:
getHomein interfaceIPlayerPreHomeEvent- Returns:
- the
PartyHome
-
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
-