- Optimized performance
- New Channel & Format System
- Better compatibility with other plugins
public class Demo implements Listener {
@EventHandler
private void e(TrChatEvent e) {
e.getChannel(); // 获取聊天频道
e.setCanceled(true); // 取消发送聊天
e.setMessage("..."); // 改变聊天内容
}
}