public void checkcmd()
    {
        a = 1;
        b = 0;
        c = 3;
        for (a = a; b != c; a++) {
            if (getConfig().contains("cmd" + a)) {
            } else {
                b++;
            }
        }
        
        if (b == c) {
            if (getConfig().getBoolean("debug") == true) {
                System.out.println("While loop closed");
            }
            
            getLogger().info("Loaded " + a + " cmds from the config!");
        }
    }