9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-29 11:59:15 +00:00

add an async option

This commit is contained in:
XiaoMoMi
2024-10-24 01:38:07 +08:00
parent c36996efa7
commit 0941070944
5 changed files with 12 additions and 3 deletions

View File

@@ -94,6 +94,8 @@ public abstract class ConfigManager implements ConfigLoader, Reloadable {
protected boolean worldeditSupport = false;
protected boolean interveneAntiGrief = false;
protected boolean asyncWorldSaving = true;
public ConfigManager(BukkitCustomCropsPlugin plugin) {
this.plugin = plugin;
instance = this;
@@ -167,6 +169,10 @@ public abstract class ConfigManager implements ConfigLoader, Reloadable {
return instance.doubleCheck;
}
public static boolean asyncWorldSaving() {
return instance.asyncWorldSaving;
}
public static Set<String> scarecrow() {
return instance.scarecrow;
}