9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-23 08:59:28 +00:00
This commit is contained in:
Xiao-MoMi
2022-07-16 12:32:21 +08:00
parent 10f2479449
commit cc4eaa5825
2 changed files with 8 additions and 8 deletions

View File

@@ -108,9 +108,9 @@ public final class CustomCrops extends JavaPlugin {
} }
//备份数据 //备份数据
AdventureManager.consoleMessage("<gradient:#ff206c:#fdee55>[CustomCrops] </gradient><color:#F5DEB3>插件数据自动备份中..."); getLogger().info("插件数据自动备份中...");
BackUp.backUpData(); BackUp.backUpData();
AdventureManager.consoleMessage("<gradient:#ff206c:#fdee55>[CustomCrops] </gradient><color:#F5DEB3>备份已完成!"); getLogger().info("备份已完成...");
//清除悬浮展示实体 //清除悬浮展示实体
HoloUtil.cache.keySet().forEach(player -> { HoloUtil.cache.keySet().forEach(player -> {
@@ -125,8 +125,11 @@ public final class CustomCrops extends JavaPlugin {
this.cropTimerAsync.stopTimer(cropTimerAsync.getTaskID()); this.cropTimerAsync.stopTimer(cropTimerAsync.getTaskID());
} }
//卸载完成 if (adventure != null) {
AdventureManager.consoleMessage("<gradient:#ff206c:#fdee55>[CustomCrops] </gradient><color:#F5DEB3>插件已卸载!作者:小默米 QQ:3266959688"); adventure.close();
}
instance = null;
} }
public CropManager getCropManager() { return this.cropManager; } public CropManager getCropManager() { return this.cropManager; }

View File

@@ -67,6 +67,3 @@ config:
#否则农作物生长到最后一阶段不会从数据中清除,过大的数据量 #否则农作物生长到最后一阶段不会从数据中清除,过大的数据量
#可能会导致服务器严重卡顿 #可能会导致服务器严重卡顿
only-grow-in-loaded-chunks: true only-grow-in-loaded-chunks: true
#在此模式下白名单世界将作为触发所有世界农作物生长的时间标准
all-world-grow: true