9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-28 03:19:15 +00:00

Added forced anti-grief support

This commit is contained in:
XiaoMoMi
2024-09-14 22:34:22 +08:00
parent f7f788a7d6
commit 92face1040
5 changed files with 20 additions and 1 deletions

View File

@@ -92,12 +92,17 @@ public abstract class ConfigManager implements ConfigLoader, Reloadable {
protected HashSet<Material> overriddenCrops = new HashSet<>();
protected boolean worldeditSupport = false;
protected boolean interveneAntiGrief = false;
public ConfigManager(BukkitCustomCropsPlugin plugin) {
this.plugin = plugin;
instance = this;
}
public static boolean interveneAntiGrief() {
return instance.interveneAntiGrief;
}
public static double getOffset(String id) {
return instance.offsets.getOrDefault(id, 0d);
}