Interface PlayerChatEvent

    • Method Detail

      • player

        Player player()
        Returns the player sending the message.
        Returns:
        the player sending the message
      • originalMessage

        String originalMessage()
        Returns the message the player originally sent.
        Returns:
        the message the player originally sent
      • currentMessage

        String currentMessage()
        Returns the message currently being sent, which may be modified by plugins.
        Returns:
        the message currently being sent
      • setCurrentMessage

        void setCurrentMessage​(String currentMessage)
        Sets a new message to send, if the message is allowed to be sent.
        Parameters:
        currentMessage - the message to send instead of the current (or original) message