@EventHandler(priority = EventPriority.LOW)
    public void onPlayerChat(final PlayerChatEvent paramPlayerChatEvent) {
        final Player localPlayer = paramPlayerChatEvent.getPlayer();
        for (final IRCChannel c : MonsterIRC.getChannels()) {
            if (c.getChatType() == ChatType.TOWNYCHAT) {
                if (c.getTownyChannel() == null) {
                    IRC.log("The towny channel you entered was not found!");
                    return;
                }
                if (this.inChannel(c.getTownyChannel(), localPlayer)
                        || TownyChatListener.directedChat.get(localPlayer)
                                .equals(c.getTownyChannel())
                        && MonsterIRC
                                .getHandleManager()
                                .getPermissionsHandler()
                                .hasNode(localPlayer,
                                        c.getTownyChannel().getPermission())) {
                    this.handle(c, localPlayer,
                            paramPlayerChatEvent.getMessage());
                }
            }
        }
    }