From 0c3c0e072628c42112fe81c54ca79c5585977527 Mon Sep 17 00:00:00 2001 From: ZhangYuheng Date: Mon, 23 Sep 2024 13:05:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E8=BD=BD=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E6=8C=87=E4=BB=A4=E6=97=A0=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/cn/lunadeer/liteworldedit/Commands.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 4bbe07d..80d4897 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ cn.lunadeer LiteWorldEdit - 2.4.3.8 + 2.4.3.9 jar LiteWorldEdit diff --git a/src/main/java/cn/lunadeer/liteworldedit/Commands.java b/src/main/java/cn/lunadeer/liteworldedit/Commands.java index cbaad5c..e0b6944 100644 --- a/src/main/java/cn/lunadeer/liteworldedit/Commands.java +++ b/src/main/java/cn/lunadeer/liteworldedit/Commands.java @@ -5,6 +5,7 @@ import cn.lunadeer.liteworldedit.JobGenerator.Empty; import cn.lunadeer.liteworldedit.JobGenerator.Fill; import cn.lunadeer.liteworldedit.JobGenerator.OverLay; import cn.lunadeer.liteworldedit.Jobs.Job; +import cn.lunadeer.liteworldedit.Managers.ConfigManager; import cn.lunadeer.liteworldedit.Managers.Point; import org.bukkit.Location; import org.bukkit.Material; @@ -102,11 +103,11 @@ public class Commands implements TabExecutor { if (!player.isOp()) { Notification.error(player, "你没有权限。"); } else { - LiteWorldEdit.instance.reloadConfig(); + LiteWorldEdit.config.reload(); Notification.info(player, "已重载配置文件。"); } } else { - LiteWorldEdit.instance.reloadConfig(); + LiteWorldEdit.config.reload(); LoggerX.info("已重载配置文件。"); } }