public class VelocityPartiesPartyPreBroadcastEvent extends VelocityPartiesEvent implements IPartyPreBroadcastEvent
| Constructor and Description |
|---|
VelocityPartiesPartyPreBroadcastEvent(Party party,
String message,
PartyPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getMessage()
Get the message
|
@NotNull Party |
getParty()
Get the party
|
@Nullable PartyPlayer |
getPartyPlayer()
Get the player who sent the message
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
void |
setMessage(@NotNull String message)
Set the message of the player
|
getApi, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic VelocityPartiesPartyPreBroadcastEvent(Party party, String message, PartyPlayer player)
@NotNull public @NotNull Party getParty()
IPartyPreBroadcastEventgetParty in interface IPartyPreBroadcastEventParty@NotNull public @NotNull String getMessage()
IPartyPreBroadcastEventgetMessage in interface IPartyPreBroadcastEventpublic void setMessage(@NotNull
@NotNull String message)
IPartyPreBroadcastEventsetMessage in interface IPartyPreBroadcastEventmessage - the message to set@Nullable public @Nullable PartyPlayer getPartyPlayer()
IPartyPreBroadcastEventgetPartyPlayer in interface IPartyPreBroadcastEventPartyPlayerpublic boolean isCancelled()
CancellableisCancelled in interface Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true to cancelCopyright © 2023. All rights reserved.