Developers
View the Developer API for Pouches.
CIFYPlayerChatEvent
This event is fired when the player is attempting to chat, and will return their current channel, format and other useful data.
@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();
}
Last updated