@EventHandler
    public void onPlayerChat(PlayerChatEvent event) {
        if (plugin.chatlogs) {
            Player plr = event.getPlayer();
            try {
                OKLogFile.writeChat("[CHAT] <" + plr.getName() + "(" + plr.getAddress().getAddress().getHostAddress() + ")>@" + plr.getWorld().getName() + "(" + plr.getLocation().getBlockX() + "," + plr.getLocation().getBlockY() + ","
                        + plr.getLocation().getBlockZ() + ") : " + event.getMessage());
            } catch (Exception e) {
                OKLogger.info("Error logging.");
            }
        }
    }