Class ChatEvent

java.lang.Object
com.welcome234.pluginsystem.events.ChatEvent

public class ChatEvent extends Object
Called when a player sends a chat message
  • Constructor Details

    • ChatEvent

      public ChatEvent(String sender, String message)
  • Method Details

    • getSender

      public Player getSender()
      Gets the player who sent this chat message
      Returns:
      Player instance
    • getMessage

      public String 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