Interface IPlayerPreChatEvent
-
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPlayerPreChatEvent,BungeePartiesPlayerPreChatEvent,VelocityPartiesPlayerPreChatEvent
public interface IPlayerPreChatEvent extends PartiesEvent, Cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull StringgetFormattedMessage()Get the formatted message of the player@NotNull StringgetMessage()Get the message of the player@NotNull PartygetParty()Get the party@NotNull PartyPlayergetPartyPlayer()Get the player who sent the messagevoidsetFormattedMessage(String formattedMessage)Set the formatted message of the player.voidsetMessage(String message)Set the message of the player-
Methods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
getPartyPlayer
@NotNull @NotNull PartyPlayer getPartyPlayer()
Get the player who sent the message- Returns:
- the
PartyPlayer
-
getFormattedMessage
@NotNull @NotNull String getFormattedMessage()
Get the formatted message of the player- Returns:
- the formatted message
-
setFormattedMessage
void setFormattedMessage(String formattedMessage)
Set the formatted message of the player. This message should contain %message% placeholder- Parameters:
formattedMessage- the formatted message to set
-
getMessage
@NotNull @NotNull String getMessage()
Get the message of the player- Returns:
- the message
-
setMessage
void setMessage(String message)
Set the message of the player- Parameters:
message- the message to set
-
-