h31ix

Untitled

Feb 11th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. if (!props.containsKey("downloadUpdate"))
  2. {
  3. props.setProperty("downloadUpdate", Boolean.valueOf(this.downloadUpdate).toString());
  4. FileOutputStream fileOutputStream = new FileOutputStream(file);
  5. props.store(fileOutputStream, "");
  6. fileOutputStream.close();
  7. }
  8. if (!props.containsKey("broadcast"))
  9. {
  10. props.setProperty("broadcast", Boolean.valueOf(this.broadcast).toString());
  11. FileOutputStream fileOutputStream = new FileOutputStream(file);
  12. props.store(fileOutputStream, "");
  13. fileOutputStream.close();
  14. }
  15. if (!props.containsKey("broadCastPeriod"))
  16. {
  17. props.setProperty("broadCastPeriod", Long.valueOf(this.broadCastPeriod).toString());
  18. FileOutputStream fileOutputStream = new FileOutputStream(file);
  19. props.store(fileOutputStream, "");
  20. fileOutputStream.close();
  21. }
  22. if (props.containsKey("stableBuild"))
  23. {
  24. props.remove("stableBuild");
  25. FileOutputStream fileOutputStream = new FileOutputStream(file);
  26. props.store(fileOutputStream, "");
  27. fileOutputStream.close();
  28. }
  29. if (props.containsKey("recommendedBuild"))
  30. {
  31. if (!props.get("recommendedBuild").equals("true"))
  32. {
  33. this.updateChannel = "beta";
  34. }
  35. props.remove("recommendedBuild");
  36. FileOutputStream fileOutputStream = new FileOutputStream(file);
  37. props.store(fileOutputStream, "");
  38. fileOutputStream.close();
  39. }
  40. if (!props.containsKey("updateChannel"))
  41. {
  42. props.setProperty("updateChannel", this.updateChannel);
  43. FileOutputStream fileOutputStream = new FileOutputStream(file);
  44. props.store(fileOutputStream, "");
  45. fileOutputStream.close();
  46. }
  47. if (!props.containsKey("downloadFolder"))
  48. {
  49. props.setProperty("downloadFolder", this.downloadFolder);
  50. FileOutputStream fileOutputStream = new FileOutputStream(file);
  51. props.store(fileOutputStream, "");
  52. fileOutputStream.close();
  53. }
  54. if (!props.containsKey("craftBukkitName"))
  55. {
  56. props.setProperty("craftBukkitName", this.craftBukkitName);
  57. FileOutputStream fileOutputStream = new FileOutputStream(file);
  58. props.store(fileOutputStream, "");
  59. fileOutputStream.close();
  60. }
  61. if (!props.containsKey("pluginLog"))
  62. {
  63. props.setProperty("pluginLog", Boolean.valueOf(this.pluginLog).toString());
  64. FileOutputStream fileOutputStream = new FileOutputStream(file);
  65. props.store(fileOutputStream, "");
  66. fileOutputStream.close();
  67. }
  68. if (!props.containsKey("craftBukkitUpdateCheck"))
  69. {
  70. props.setProperty("craftBukkitUpdateCheck", Boolean.valueOf(this.craftBukkitUpdateCheck).toString());
  71. FileOutputStream fileOutputStream = new FileOutputStream(file);
  72. props.store(fileOutputStream, "");
  73. fileOutputStream.close();
  74. }
  75. if (!props.containsKey("downloadReadyFile"))
  76. {
  77. props.setProperty("downloadReadyFile", Boolean.valueOf(this.downloadReadyFile).toString());
  78. FileOutputStream fileOutputStream = new FileOutputStream(file);
  79. props.store(fileOutputStream, "");
  80. fileOutputStream.close();
  81. }
  82. if (!props.containsKey("broadcastOnlyToOps"))
  83. {
  84. props.setProperty("broadcastOnlyToOps", Boolean.valueOf(this.broadcastOnlyToOps).toString());
  85. FileOutputStream fileOutputStream = new FileOutputStream(file);
  86. props.store(fileOutputStream, "");
  87. fileOutputStream.close();
  88. }
  89. if (!props.containsKey("automaticUpdatePlugins"))
  90. {
  91. props.setProperty("automaticUpdatePlugins", Boolean.valueOf(this.automaticUpdatePlugins).toString());
  92. FileOutputStream fileOutputStream = new FileOutputStream(file);
  93. props.store(fileOutputStream, "");
  94. fileOutputStream.close();
  95. }
  96. if (!props.containsKey("usePermissions"))
  97. {
  98. props.setProperty("usePermissions", Boolean.valueOf(this.usePermissions).toString());
  99. FileOutputStream fileOutputStream = new FileOutputStream(file);
  100. props.store(fileOutputStream, "");
  101. fileOutputStream.close();
  102. }
  103. if (props.containsKey("useUserPluginPropertiesFirst"))
  104. {
  105. props.remove("useUserPluginPropertiesFirst");
  106. FileOutputStream fileOutputStream = new FileOutputStream(file);
  107. props.store(fileOutputStream, "");
  108. fileOutputStream.close();
  109. }
Advertisement
Add Comment
Please, Sign In to add comment