Updating option

This commit is contained in:
Jesse Boyd 2016-12-02 12:49:40 +11:00
parent 158ed391b4
commit 5a914513b9
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 11 additions and 7 deletions

View File

@ -237,6 +237,7 @@ public class Fawe {
}
}, 0);
if (Settings.UPDATE) {
// Delayed updating
TaskManager.IMP.async(new Runnable() {
@Override
@ -245,6 +246,7 @@ public class Fawe {
}
});
}
}
private boolean isJava8 = MainUtil.getJavaVersion() >= 1.8;

View File

@ -24,6 +24,8 @@ public class Settings extends Config {
@Final
public static String PLATFORM = null; // These values are set from FAWE before loading
@Comment("Allow the plugin to update")
public static boolean UPDATE = true;
@Comment("Send anonymous usage statistics to MCStats.org")
public static boolean METRICS = true;
@Comment("FAWE will skip chunks when there's not enough memory available")