9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-29 11:59:15 +00:00
This commit is contained in:
XiaoMoMi
2025-12-12 16:36:11 +08:00
parent d8cb875ba9
commit af3fc5d755
10 changed files with 27 additions and 27 deletions

View File

@@ -167,7 +167,7 @@ public class BukkitCustomCropsPluginImpl extends BukkitCustomCropsPlugin {
boolean downloadFromBBB = buildByBit.equals("true");
this.reload();
if (ConfigManager.metrics()) new Metrics((JavaPlugin) getBootstrap(), 16593);
if (ConfigManager.metrics()) new Metrics(getBootstrap(), 16593);
if (ConfigManager.checkUpdate()) {
VersionHelper.UPDATE_CHECKER.apply(this).thenAccept(result -> {
String link;

View File

@@ -48,7 +48,7 @@ public abstract class BukkitItemFactory extends ItemFactory<CustomCropsPlugin, R
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4" -> {
return new ComponentItemFactory(plugin);
}
case "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10" -> {
case "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10", "1.21.11" -> {
return new ComponentItemFactory1_21_5(plugin);
}
default -> throw new IllegalStateException("Unsupported server version: " + plugin.getServerVersion());