> For the complete documentation index, see [llms.txt](https://plugins-1.gitbook.io/plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugins-1.gitbook.io/plugins/plugin/chat/developers.md).

# Developers

## CIFYPlayerChatEvent

This event is fired when the player is attempting to chat, and will return their current channel, format and other useful data.

```java
    @EventHandler
    public void onChat(final CIFYPlayerChatEvent e) {
        // Player sending the message.
        Player player = e.getPlayer();
        
        // The message sent via the player.
        String message = e.getMessage();
        
        // The players current format.
        Format format = e.getFormat();
        
        // The players current channel.
        // This may also have been sent via a shortcut.
        Channel channel = e.getChannel();
    }
```
