Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!props.containsKey("downloadUpdate"))
- {
- props.setProperty("downloadUpdate", Boolean.valueOf(this.downloadUpdate).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("broadcast"))
- {
- props.setProperty("broadcast", Boolean.valueOf(this.broadcast).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("broadCastPeriod"))
- {
- props.setProperty("broadCastPeriod", Long.valueOf(this.broadCastPeriod).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (props.containsKey("stableBuild"))
- {
- props.remove("stableBuild");
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (props.containsKey("recommendedBuild"))
- {
- if (!props.get("recommendedBuild").equals("true"))
- {
- this.updateChannel = "beta";
- }
- props.remove("recommendedBuild");
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("updateChannel"))
- {
- props.setProperty("updateChannel", this.updateChannel);
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("downloadFolder"))
- {
- props.setProperty("downloadFolder", this.downloadFolder);
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("craftBukkitName"))
- {
- props.setProperty("craftBukkitName", this.craftBukkitName);
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("pluginLog"))
- {
- props.setProperty("pluginLog", Boolean.valueOf(this.pluginLog).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("craftBukkitUpdateCheck"))
- {
- props.setProperty("craftBukkitUpdateCheck", Boolean.valueOf(this.craftBukkitUpdateCheck).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("downloadReadyFile"))
- {
- props.setProperty("downloadReadyFile", Boolean.valueOf(this.downloadReadyFile).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("broadcastOnlyToOps"))
- {
- props.setProperty("broadcastOnlyToOps", Boolean.valueOf(this.broadcastOnlyToOps).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("automaticUpdatePlugins"))
- {
- props.setProperty("automaticUpdatePlugins", Boolean.valueOf(this.automaticUpdatePlugins).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (!props.containsKey("usePermissions"))
- {
- props.setProperty("usePermissions", Boolean.valueOf(this.usePermissions).toString());
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
- if (props.containsKey("useUserPluginPropertiesFirst"))
- {
- props.remove("useUserPluginPropertiesFirst");
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- props.store(fileOutputStream, "");
- fileOutputStream.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment