Class BungeePartiesPlayerPreInviteEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
-
- com.alessiodp.parties.api.events.bungee.player.BungeePartiesPlayerPreInviteEvent
-
- All Implemented Interfaces:
Cancellable,IPlayerPreInviteEvent,PartiesEvent
public class BungeePartiesPlayerPreInviteEvent extends BungeePartiesEvent implements IPlayerPreInviteEvent
-
-
Constructor Summary
Constructors Constructor Description BungeePartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer, PartyPlayer inviter, Party party)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PartyPlayergetInvitedPlayer()Get the invited player@Nullable PartyPlayergetInviter()Get the inviter@NotNull PartygetParty()Get the partybooleanisCancelled()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
-
BungeePartiesPlayerPreInviteEvent
public BungeePartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer, PartyPlayer inviter, Party party)
-
-
Method Detail
-
getInvitedPlayer
@NotNull public @NotNull PartyPlayer getInvitedPlayer()
Description copied from interface:IPlayerPreInviteEventGet the invited player- Specified by:
getInvitedPlayerin interfaceIPlayerPreInviteEvent- Returns:
- the
PartyPlayer
-
getInviter
@Nullable public @Nullable PartyPlayer getInviter()
Description copied from interface:IPlayerPreInviteEventGet the inviter- Specified by:
getInviterin interfaceIPlayerPreInviteEvent- Returns:
- the
PartyPlayer
-
getParty
@NotNull public @NotNull Party getParty()
Description copied from interface:IPlayerPreInviteEventGet the party- Specified by:
getPartyin interfaceIPlayerPreInviteEvent- Returns:
- the
Party
-
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
-
-