Interface PlayerChatEvent

    • Method Detail

      • player

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

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

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

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