public class BukkitPartiesPartyPreBroadcastEvent extends BukkitPartiesEvent implements IPartyPreBroadcastEvent, org.bukkit.event.Cancellable
Constructor and Description |
---|
BukkitPartiesPartyPreBroadcastEvent(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, getHandlerList, getHandlers, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BukkitPartiesPartyPreBroadcastEvent(Party party, String message, PartyPlayer player)
@NotNull public @NotNull Party getParty()
IPartyPreBroadcastEvent
getParty
in interface IPartyPreBroadcastEvent
Party
@NotNull public @NotNull String getMessage()
IPartyPreBroadcastEvent
getMessage
in interface IPartyPreBroadcastEvent
public void setMessage(@NotNull @NotNull String message)
IPartyPreBroadcastEvent
setMessage
in interface IPartyPreBroadcastEvent
message
- the message to set@Nullable public @Nullable PartyPlayer getPartyPlayer()
IPartyPreBroadcastEvent
getPartyPlayer
in interface IPartyPreBroadcastEvent
PartyPlayer
public boolean isCancelled()
Cancellable
isCancelled
in interface org.bukkit.event.Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface org.bukkit.event.Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.