Class VelocityPartiesPlayerPreInviteEvent
java.lang.Object
com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
com.alessiodp.parties.api.events.velocity.player.VelocityPartiesPlayerPreInviteEvent
- All Implemented Interfaces:
Cancellable,IPlayerPreInviteEvent,PartiesEvent
public class VelocityPartiesPlayerPreInviteEvent
extends VelocityPartiesEvent
implements IPlayerPreInviteEvent
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityPartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer, PartyPlayer inviter, Party party) -
Method Summary
Modifier and TypeMethodDescription@NotNull PartyPlayerGet the invited player@Nullable PartyPlayerGet the inviter@NotNull PartygetParty()Get the partybooleanIs the event cancelled?voidsetCancelled(boolean cancel) Set the event as cancelledMethods inherited from class com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
getApi, setApiMethods 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
-
VelocityPartiesPlayerPreInviteEvent
public VelocityPartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer, PartyPlayer inviter, Party party)
-
-
Method Details
-
getInvitedPlayer
Description copied from interface:IPlayerPreInviteEventGet the invited player- Specified by:
getInvitedPlayerin interfaceIPlayerPreInviteEvent- Returns:
- the
PartyPlayer
-
getInviter
Description copied from interface:IPlayerPreInviteEventGet the inviter- Specified by:
getInviterin interfaceIPlayerPreInviteEvent- Returns:
- the
PartyPlayer
-
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
-