修复重载配置文件指令无效问题
All checks were successful
Java CI-CD with Maven / build (push) Successful in 12m33s

This commit is contained in:
ZhangYuheng 2024-09-23 13:05:47 +08:00
parent 7fd8f8450c
commit 0c3c0e0726
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId> <groupId>cn.lunadeer</groupId>
<artifactId>LiteWorldEdit</artifactId> <artifactId>LiteWorldEdit</artifactId>
<version>2.4.3.8</version> <version>2.4.3.9</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>LiteWorldEdit</name> <name>LiteWorldEdit</name>

View File

@ -5,6 +5,7 @@ import cn.lunadeer.liteworldedit.JobGenerator.Empty;
import cn.lunadeer.liteworldedit.JobGenerator.Fill; import cn.lunadeer.liteworldedit.JobGenerator.Fill;
import cn.lunadeer.liteworldedit.JobGenerator.OverLay; import cn.lunadeer.liteworldedit.JobGenerator.OverLay;
import cn.lunadeer.liteworldedit.Jobs.Job; import cn.lunadeer.liteworldedit.Jobs.Job;
import cn.lunadeer.liteworldedit.Managers.ConfigManager;
import cn.lunadeer.liteworldedit.Managers.Point; import cn.lunadeer.liteworldedit.Managers.Point;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
@ -102,11 +103,11 @@ public class Commands implements TabExecutor {
if (!player.isOp()) { if (!player.isOp()) {
Notification.error(player, "你没有权限。"); Notification.error(player, "你没有权限。");
} else { } else {
LiteWorldEdit.instance.reloadConfig(); LiteWorldEdit.config.reload();
Notification.info(player, "已重载配置文件。"); Notification.info(player, "已重载配置文件。");
} }
} else { } else {
LiteWorldEdit.instance.reloadConfig(); LiteWorldEdit.config.reload();
LoggerX.info("已重载配置文件。"); LoggerX.info("已重载配置文件。");
} }
} }