public void load() throws IOException, InvalidConfigurationException {

        if (!file.exists()) {
            BufferedWriter writer = null;
            BufferedReader reader = null;
            try {
                InputStream in = CommandBoat.getInstance().getResource("commands.yml");
                reader = new BufferedReader(new InputStreamReader(in));
                writer = new BufferedWriter(new FileWriter(file));
                String line;
                while ((line = reader.readLine()) != null) {
                    writer.write(line);
                    writer.write(System.lineSeparator());
                }
            } catch (IOException ex) {
                CommandBoat.getInstance().getLogger().log(Level.SEVERE, null, ex);
            } finally {
                try {
                    writer.close();
                } catch (IOException ex) {
                    CommandBoat.getInstance().getLogger().log(Level.SEVERE, null, ex);
                }
                try {
                    reader.close();
                } catch (IOException ex) {
                    CommandBoat.getInstance().getLogger().log(Level.SEVERE, null, ex);
                }
            }
        }
        config.load(file);
    }