private void firstRun()
    {
        InputStream defStream = getResource("config.yml");
        if(defStream != null)
        {
            java.io.Writer writer = null;
            try
            {
                File configFile = new File(getDataFolder(), "config.yml");
                if(configFile.createNewFile())
                {
                    writer = new java.io.BufferedWriter(new java.io.FileWriter(configFile));
                    // Writing with commentary
                    java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(defStream));
                    String in;
                    while((in = reader.readLine()) != null)
                    {
                        writer.write(in+"\n");
                    }
                }
            }
            catch(IOException ex)
            {
                ex.printStackTrace();
            }
            finally
            {
                if(writer != null)
                {
                    try
                    {
                        writer.close();
                    }catch(IOException ex){}
                }
                if(defStream != null)
                {
                    try
                    {
                        defStream.close();
                    }catch(IOException ex){}
                }
            }
        }
    }