Class VelocityPartiesPartyPreBroadcastEvent
java.lang.Object
com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
com.alessiodp.parties.api.events.velocity.party.VelocityPartiesPartyPreBroadcastEvent
- All Implemented Interfaces:
Cancellable,IPartyPreBroadcastEvent,PartiesEvent
public class VelocityPartiesPartyPreBroadcastEvent
extends VelocityPartiesEvent
implements IPartyPreBroadcastEvent
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityPartiesPartyPreBroadcastEvent(Party party, String message, PartyPlayer player) -
Method Summary
Modifier and TypeMethodDescription@NotNull StringGet the message@NotNull PartygetParty()Get the party@Nullable PartyPlayerGet the player who sent the messagebooleanIs the event cancelled?voidsetCancelled(boolean cancel) Set the event as cancelledvoidsetMessage(@NotNull String message) Set the message of the playerMethods 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
-
VelocityPartiesPartyPreBroadcastEvent
-
-
Method Details
-
getParty
Description copied from interface:IPartyPreBroadcastEventGet the party- Specified by:
getPartyin interfaceIPartyPreBroadcastEvent- Returns:
- the
Party
-
getMessage
Description copied from interface:IPartyPreBroadcastEventGet the message- Specified by:
getMessagein interfaceIPartyPreBroadcastEvent- Returns:
- the message
-
setMessage
Description copied from interface:IPartyPreBroadcastEventSet the message of the player- Specified by:
setMessagein interfaceIPartyPreBroadcastEvent- Parameters:
message- the message to set
-
getPartyPlayer
Description copied from interface:IPartyPreBroadcastEventGet the player who sent the message- Specified by:
getPartyPlayerin interfaceIPartyPreBroadcastEvent- Returns:
- the
PartyPlayer
-
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
-