Class ChatEvent
java.lang.Object
com.welcome234.pluginsystem.events.ChatEvent
Called when a player sends a chat message
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the message of this chat messageGets the player who sent this chat messagebooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
ChatEvent
-
-
Method Details
-
getSender
Gets the player who sent this chat message- Returns:
- Player instance
-
getMessage
Gets the message of this chat message- Returns:
- Chat message
-
isCancelled
public boolean isCancelled()Gets whether this event is cancelled- Returns:
- Whether cancelled
-
setCancelled
public void setCancelled(boolean cancelled)Sets the cancellation status of this event- Parameters:
cancelled- Whether cancelled
-