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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BungeePartiesPlayerPreChatEvent(PartyPlayer player, Party party, String formattedMessage, String message)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreChatEvent
getPartyPlayer
in interface IPlayerPreChatEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPreChatEvent
getParty
in interface IPlayerPreChatEvent
Party
@NotNull public @NotNull String getFormattedMessage()
IPlayerPreChatEvent
getFormattedMessage
in interface IPlayerPreChatEvent
public void setFormattedMessage(String formattedMessage)
IPlayerPreChatEvent
setFormattedMessage
in interface IPlayerPreChatEvent
formattedMessage
- the formatted message to set@NotNull public @NotNull String getMessage()
IPlayerPreChatEvent
getMessage
in interface IPlayerPreChatEvent
public void setMessage(String message)
IPlayerPreChatEvent
setMessage
in interface IPlayerPreChatEvent
message
- the message to setpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.