/*
 * This file is part of SpongeAPI, licensed under the MIT License (MIT).
 *
 * Copyright (c) SpongePowered <https://www.spongepowered.org>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.spongepowered.api.event.entity.player;

import org.spongepowered.api.entity.player.Player;
import org.spongepowered.api.event.Cancellable;
import org.spongepowered.api.text.Text;

/**
 * Called when a {@link Player} sends a chat message.
 */
public interface PlayerChatEvent extends PlayerMessageEvent, Cancellable {

    /**
     * Returns the message as the player provided it, without being formatted with the player's name or any other decorations.
     *
     * @return The unformatted message
     */
    Text getUnformattedMessage();

}

@@ -1593,215 +1593,1017 @@
   * 
-Returns the message as the player provided it, without being formatted with the player's name or any other decorations.%0A     *%0A     * @return The unformatted message%0A     */%0A    Text getUnformattedMessage();%0A
+The placeholder key that will be replaced with the player's name%0A     */%0A    String PLACEHOLDER_NAME = %22name%22;%0A%0A    /**%0A     * The placeholder key that will be replaced with the output of %7B@link #getUnformattedMessage()%7D%0A     */%0A    String PLACEHOLDER_MESSAGE = %22message%22;%0A%0A    /**%0A     * Returns the message as the player provided it, without being formatted with the player's name or any other decorations.%0A     *%0A     * @return The unformatted message%0A     */%0A    Text getUnformattedMessage();%0A%0A    /**%0A     * Set the unformatted message that will be provided for this event%0A     *%0A     * @param message The message to set%0A     */%0A    void setUnformattedMessage(Text message);%0A%0A    /**%0A     * Set the new message to be used in this event. The placeholders %7B@code name%7D and %7B@code message%7D will be replaced with the sender's display%0A     * name and %7B@link #getUnformattedMessage()%7D in the provided text.%0A     *%0A     * @param message The new message%0A     */%0A    @Override%0A    void setNewMessage(Text message);
 %0A%7D%0A

Improve PlayerChatEvent for better plugin interop