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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user