fix: 修复reload命令报错的问题

Signed-off-by: 502647092 <admin@yumc.pw>
dev 2.4.1
502647092 2016-07-01 13:58:08 +08:00
parent d62a36815e
commit b3d6a2e6ba
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>Yum</artifactId>
<version>2.4</version>
<version>2.4.1</version>
<name>Yum</name>
<description>Minecraft 服务器插件管理系统</description>
<build>
@ -60,6 +60,7 @@
<properties>
<update.description>&amp;a全新 2.X 版本 更多守护与优化</update.description>
<update.changes>
&amp;b2.4.1 &amp;6- &amp;c修复reload命令报错的问题...;
&amp;b2.4 &amp;6- &amp;c修复重载插件导致线程安全错误的问题...;
&amp;b2.3 &amp;6- &amp;a网络监控添加域名白名单功能...;
&amp;b2.2 &amp;6- &amp;b新增线程安全拦截 主线程IO拦截...;

View File

@ -214,6 +214,7 @@ public class YumCommand implements HandlerCommands, Listener {
if (e.getArgs().length == 0) {
ConfigManager.i().reload();
sender.sendMessage("§6重载: §a配置文件已重载!");
return;
}
final String pluginname = e.getArgs()[0];
if (pluginname.equalsIgnoreCase("all") || pluginname.equalsIgnoreCase("*")) {