Interface IPlayerPreChatEvent
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPlayerPreChatEvent,BungeePartiesPlayerPreChatEvent,VelocityPartiesPlayerPreChatEvent
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringGet the formatted message of the player@NotNull StringGet the message of the player@NotNull PartygetParty()Get the party@NotNull PartyPlayerGet the player who sent the messagevoidsetFormattedMessage(String formattedMessage) Set the formatted message of the player.voidsetMessage(String message) Set the message of the playerMethods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelledMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Method Details
-
getPartyPlayer
Get the player who sent the message- Returns:
- the
PartyPlayer
-
getParty
Get the party- Returns:
- the
Party
-
getFormattedMessage
Get the formatted message of the player- Returns:
- the formatted message
-
setFormattedMessage
Set the formatted message of the player. This message should contain %message% placeholder- Parameters:
formattedMessage- the formatted message to set
-
getMessage
Get the message of the player- Returns:
- the message
-
setMessage
Set the message of the player- Parameters:
message- the message to set
-