public void logCheck() {
        new File(directory).mkdir();
        new File(subdirectory).mkdir();
        new File(subsubdirectory).mkdir();
        if (!chatfile.exists()) {
            try {
                chatfile.createNewFile();
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
        if (!cmdfile.exists()) {
            try {
                cmdfile.createNewFile();
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
        prune();
        plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
            public void run() {
                OKLogFile.prune();
            }

        }, 3600L, 72000L);
    }