public class BungeePartiesPlayerPreChatEvent extends BungeePartiesEvent implements IPlayerPreChatEvent
| Constructor and Description |
|---|
BungeePartiesPlayerPreChatEvent(PartyPlayer player,
Party party,
String formattedMessage,
String message) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getFormattedMessage()
Get the formatted message of the player
|
@NotNull String |
getMessage()
Get the message of the player
|
@NotNull Party |
getParty()
Get the party
|
@NotNull 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 |
setFormattedMessage(String formattedMessage)
Set the formatted message of the player.
|
void |
setMessage(String message)
Set the message of the player
|
getApi, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic BungeePartiesPlayerPreChatEvent(PartyPlayer player, Party party, String formattedMessage, String message)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreChatEventgetPartyPlayer in interface IPlayerPreChatEventPartyPlayer@NotNull public @NotNull Party getParty()
IPlayerPreChatEventgetParty in interface IPlayerPreChatEventParty@NotNull public @NotNull String getFormattedMessage()
IPlayerPreChatEventgetFormattedMessage in interface IPlayerPreChatEventpublic void setFormattedMessage(String formattedMessage)
IPlayerPreChatEventsetFormattedMessage in interface IPlayerPreChatEventformattedMessage - the formatted message to set@NotNull public @NotNull String getMessage()
IPlayerPreChatEventgetMessage in interface IPlayerPreChatEventpublic void setMessage(String message)
IPlayerPreChatEventsetMessage in interface IPlayerPreChatEventmessage - the message to setpublic 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.