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
Constructors Constructor Description VelocityPartiesPartyPreBroadcastEvent(Party party, String message, PartyPlayer player)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetMessage()Get the message@NotNull PartygetParty()Get the party@Nullable PartyPlayergetPartyPlayer()Get the player who sent the messagebooleanisCancelled()Is the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelledvoidsetMessage(@NotNull String message)Set the message of the player-
Methods inherited from class com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
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
-
VelocityPartiesPartyPreBroadcastEvent
public VelocityPartiesPartyPreBroadcastEvent(Party party, String message, PartyPlayer player)
-
-
Method Detail
-
getParty
@NotNull public @NotNull Party getParty()
Description copied from interface:IPartyPreBroadcastEventGet the party- Specified by:
getPartyin interfaceIPartyPreBroadcastEvent- Returns:
- the
Party
-
getMessage
@NotNull public @NotNull String getMessage()
Description copied from interface:IPartyPreBroadcastEventGet the message- Specified by:
getMessagein interfaceIPartyPreBroadcastEvent- Returns:
- the message
-
setMessage
public void setMessage(@NotNull @NotNull String message)Description copied from interface:IPartyPreBroadcastEventSet the message of the player- Specified by:
setMessagein interfaceIPartyPreBroadcastEvent- Parameters:
message- the message to set
-
getPartyPlayer
@Nullable public @Nullable PartyPlayer 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
-
-