Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!Properties.exists()){
- try {
- Properties.createNewFile();
- FileWriter writer = null;
- try {
- writer = new FileWriter(Properties);
- writer.append("#mcMMO Main Configuration File\r\n");
- writer.append("#Turn this setting to false to disable pvp interactions completely (THIS IS FOR PLUGIN COMPATABILITY MAINLY)");
- writer.append("pvp=true");
- writer.append("#Excavation Loot Toggles");
- writer.append("eggs=true");
- writer.append("apples=true");
- writer.append("cake=true");
- writer.append("music=true");
- writer.append("diamond=true");
- writer.append("glowstone=true");
- writer.append("slowsand=true");
- writer.append("netherrack=true");
- writer.append("bones=true");
- writer.append("sulphur=true");
- writer.append("#Appreciate the plugin? Send me a donation via paypal nossr50@gmail.com\r\n");
- } catch (Exception e) {
- log.log(Level.SEVERE, "Exception while creating " + Properties, e);
- } finally {
- try {
- if (writer != null) {
- writer.close();
- }
- } catch (IOException e) {
- log.log(Level.SEVERE, "Exception while closing writer for " + Properties, e);
- }
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement