Class BungeePartiesPlayerPreTeleportEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
-
- com.alessiodp.parties.api.events.bungee.player.BungeePartiesPlayerPreTeleportEvent
-
- All Implemented Interfaces:
Cancellable,IPlayerPreTeleportEvent,PartiesEvent
public class BungeePartiesPlayerPreTeleportEvent extends BungeePartiesEvent implements IPlayerPreTeleportEvent
-
-
Constructor Summary
Constructors Constructor Description BungeePartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, net.md_5.bungee.api.config.ServerInfo destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull net.md_5.bungee.api.config.ServerInfogetDestination()Get the destination as ServerInfo@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.bungee.BungeePartiesEvent
getApi, 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
-
BungeePartiesPlayerPreTeleportEvent
public BungeePartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, net.md_5.bungee.api.config.ServerInfo 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
-
getDestination
@NotNull public @NotNull net.md_5.bungee.api.config.ServerInfo getDestination()
Get the destination as ServerInfo- Returns:
- the
ServerInfo
-
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
-
-