Class BukkitPartiesPlayerPreTeleportEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
-
- com.alessiodp.parties.api.events.bukkit.player.BukkitPartiesPlayerPreTeleportEvent
-
- All Implemented Interfaces:
Cancellable,IPlayerPreTeleportEvent,PartiesEvent,org.bukkit.event.Cancellable
public class BukkitPartiesPlayerPreTeleportEvent extends BukkitPartiesEvent implements IPlayerPreTeleportEvent, org.bukkit.event.Cancellable
-
-
Constructor Summary
Constructors Constructor Description BukkitPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, org.bukkit.Location destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull org.bukkit.LocationgetDestination()Get the destination as Location@NotNull PartygetParty()Get the party@NotNull PartyPlayergetPartyPlayer()Get the player who is getting teleportedbooleanisCancelled()Is the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelled-
Methods inherited from class com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
getApi, getHandlerList, getHandlers, setApi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
BukkitPartiesPlayerPreTeleportEvent
public BukkitPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, org.bukkit.Location destination)
-
-
Method Detail
-
getPartyPlayer
@NotNull public @NotNull PartyPlayer getPartyPlayer()
Description copied from interface:IPlayerPreTeleportEventGet the player who is getting teleported- Specified by:
getPartyPlayerin interfaceIPlayerPreTeleportEvent- Returns:
- the
PartyPlayer
-
getParty
@NotNull public @NotNull Party getParty()
Description copied from interface:IPlayerPreTeleportEventGet the party- Specified by:
getPartyin interfaceIPlayerPreTeleportEvent- Returns:
- the
Party
-
isCancelled
public boolean isCancelled()
Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable- 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- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
cancel-trueto cancel
-
getDestination
@NotNull public @NotNull org.bukkit.Location getDestination()
Get the destination as Location- Returns:
- the
Location
-
-