diff --git a/src/main/java/net/momirealms/customcrops/CustomCrops.java b/src/main/java/net/momirealms/customcrops/CustomCrops.java index c098adc..26a6dd7 100644 --- a/src/main/java/net/momirealms/customcrops/CustomCrops.java +++ b/src/main/java/net/momirealms/customcrops/CustomCrops.java @@ -108,9 +108,9 @@ public final class CustomCrops extends JavaPlugin { } //备份数据 - AdventureManager.consoleMessage("[CustomCrops] 插件数据自动备份中..."); + getLogger().info("插件数据自动备份中..."); BackUp.backUpData(); - AdventureManager.consoleMessage("[CustomCrops] 备份已完成!"); + getLogger().info("备份已完成..."); //清除悬浮展示实体 HoloUtil.cache.keySet().forEach(player -> { @@ -125,8 +125,11 @@ public final class CustomCrops extends JavaPlugin { this.cropTimerAsync.stopTimer(cropTimerAsync.getTaskID()); } - //卸载完成 - AdventureManager.consoleMessage("[CustomCrops] 插件已卸载!作者:小默米 QQ:3266959688"); + if (adventure != null) { + adventure.close(); + } + + instance = null; } public CropManager getCropManager() { return this.cropManager; } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index a3488e5..3cdf188 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -66,7 +66,4 @@ config: #如果你使用上述三个特性中的任意一个,请不要设置为false #否则农作物生长到最后一阶段不会从数据中清除,过大的数据量 #可能会导致服务器严重卡顿 - only-grow-in-loaded-chunks: true - - #在此模式下白名单世界将作为触发所有世界农作物生长的时间标准 - all-world-grow: true \ No newline at end of file + only-grow-in-loaded-chunks: true \ No newline at end of file