Trigger bukkit chat events when using message commands

This commit is contained in:
Draycia committed 2021-12-17 21:56:59 -08:00
1 parent 6e0f946337
commit 2c8e26a491
7 files changed
+45 -2

No files matched your search

@@ -227,7 +227,16 @@ public interface CarbonPlayer extends Audience, Identified {
void sendMessageAsPlayer(final String message);
/**
* Returns whether or not the player is online.
* Checks if the player is allowed to send the message or not.
*
* @param message the message
* @return if the message can be sent in chat
* @since 2.0.4
*/
boolean speechPermitted(final String message);
/**
* Returns whether the player is online.
*
* @return if the player is online.
* @since 2.0.0