v4.31 紧急修复版

+ 优化 TConfiguration 模块,兼容插件热重载
+ 修复插件类缓存顺序问题,兼容插件热重载
+ 删除配置文件中的 DEBUG 节点,改为指令输入 /tDEBUG 切换开关
This commit is contained in:
坏黑
2018-09-25 11:41:50 +08:00
parent bc7554a86b
commit c19590ab1f
8 changed files with 117 additions and 52 deletions

View File

@@ -158,11 +158,11 @@ public class TabooLibLoader implements Listener {
@EventHandler(priority = EventPriority.LOWEST)
public void onEnable(PluginEnableEvent e) {
pluginClasses.remove(e.getPlugin().getName());
setupClasses(e.getPlugin());
}
@EventHandler(priority = EventPriority.MONITOR)
public void onDisable(PluginDisableEvent e) {
setupClasses(e.getPlugin());
pluginClasses.remove(e.getPlugin().getName());
}
}