private void loadConfig(){
        
        FileConfiguration config = new YamlConfiguration();
        
        try{
            
            config.load(this.getResource("config.yml"));
            
            /**
             * debug is initialized to true in case there is a problem reading the
             * config itself, so that the error will print out.
             * 
             * When reading however, it's defaulted to false if no value is specified.
             */
            debug = config.getBoolean("debug", false);
            
        }catch (IOException | InvalidConfigurationException ex){
            
            LOG.severe("[Dungeons] An error occurred reading the config file.");
            if(debug)
                ex.printStackTrace();
            
        }
        
    }