9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-23 00:49:33 +00:00

Towny Support + WorldGuard Fix

This commit is contained in:
Xiao-MoMi
2022-07-06 14:33:49 +08:00
parent 649f7d28a8
commit f6dbe3c76c
8 changed files with 66 additions and 17 deletions

View File

@@ -188,6 +188,14 @@ public class ConfigReader {
AdventureManager.consoleMessage("<gradient:#ff206c:#fdee55>[CustomCrops] </gradient><color:#FFEBCD>已启用 <gold>PlotSquared <color:#FFEBCD>保护!");
}
}
if(config.getBoolean("config.integration.Towny",false)){
if(Bukkit.getPluginManager().getPlugin("Towny") == null){
CustomCrops.instance.getLogger().warning("未检测到插件 Towny!");
}else {
integration.add(new Towny());
AdventureManager.consoleMessage("<gradient:#ff206c:#fdee55>[CustomCrops] </gradient><color:#FFEBCD>已启用 <gold>Towny <color:#FFEBCD>保护!");
}
}
}
}
@@ -304,6 +312,7 @@ public class ConfigReader {
public static String setSeason;
public static String wrongArgs;
public static String forceSave;
public static String noSeason;
public static boolean hasCropInfo;
public static boolean hasSprinklerInfo;
public static boolean hasWaterInfo;
@@ -347,6 +356,7 @@ public class ConfigReader {
wrongArgs = config.getString("messages.wrong-args");
forceSave = config.getString("messages.force-save");
beforePlant = config.getString("messages.before-plant");
noSeason = config.getString("messages.no-season","当前世界没有季节");
hasCropInfo = config.getBoolean("hologram.grow-info.enable");
if (hasCropInfo){