mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2026-06-05 00:35:02 +08:00
修复高版本重载失效的问题
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package cc.carm.plugin.userprefix.command;
|
||||
|
||||
import cc.carm.plugin.userprefix.ui.PrefixSelectGUI;
|
||||
import cc.carm.plugin.userprefix.manager.ConfigManager;
|
||||
import cc.carm.plugin.userprefix.manager.PrefixManager;
|
||||
import cc.carm.plugin.userprefix.manager.UserManager;
|
||||
import cc.carm.plugin.userprefix.model.ConfiguredPrefix;
|
||||
import cc.carm.plugin.userprefix.ui.PrefixSelectGUI;
|
||||
import cc.carm.plugin.userprefix.util.ColorParser;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
@@ -30,7 +31,8 @@ public class UserPrefixAdminCommand implements CommandExecutor {
|
||||
} else if (aim.equalsIgnoreCase("reload")) {
|
||||
long s1 = System.currentTimeMillis();
|
||||
PrefixSelectGUI.closeAll(); // 关掉所有正在显示的前缀列表
|
||||
PrefixManager.loadConfiguredPrefixes(); //重载配置文件
|
||||
ConfigManager.reloadConfig(); // 重载配置文件
|
||||
PrefixManager.loadConfiguredPrefixes(); //加载重载后了的配置文件
|
||||
for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
|
||||
UserManager.checkPrefix(onlinePlayer, false);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user