Skip to content

Commit

Permalink
Add version and config header
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitylow committed Oct 10, 2013
1 parent 4f5167d commit 0a095c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/net/gravitydevelopment/updater/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* If you are unsure about these rules, please read the plugin submission guidelines: http://goo.gl/8iU5l
*
* @author Gravity
* @version 2.0
*/

public class Updater {
Expand Down Expand Up @@ -160,6 +161,9 @@ public Updater(Plugin plugin, int id, File file, UpdateType type, boolean announ
}
this.config = YamlConfiguration.loadConfiguration(updaterConfigFile);

this.config.options().header("This configuration file affects all plugins using the Updater system (version 2+ - http://forums.bukkit.org/threads/96681/ )" + '\n'
+ "If you wish to use your API key, read http://wiki.bukkit.org/ServerMods_API and place it below." + '\n'
+ "Some updating systems will not adhere to the disabled value, but these may be turned off in their plugin's configuration.");
this.config.addDefault("api-key", "PUT_API_KEY_HERE");
this.config.addDefault("disable", false);

Expand Down Expand Up @@ -305,7 +309,7 @@ private void saveFile(File folder, String file, String u) {
}

/**
* Part of Zip-File-Extractor, modified by H31IX for use with Bukkit
* Part of Zip-File-Extractor, modified by Gravity for use with Bukkit
*/
private void unzip(String file) {
try {
Expand Down

0 comments on commit 0a095c2

Please sign in to comment.