1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2025-09-09 15:30:45 +00:00

低版本兼容 fix bug

This commit is contained in:
GeekFrog
2017-07-16 10:38:19 +08:00
parent 277d091ce7
commit 27f573c26b
5 changed files with 15 additions and 8 deletions

View File

@ -62,10 +62,12 @@ public class PluginMain extends JavaPlugin {
getServer().getScheduler().runTask(pm, new Runnable() {
public void run() {
if (!checkPluginDepends()) {
getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + "启动失败!"));
getServer().getPluginManager().disablePlugin(pm);
} else {
registerListeners();
registerCommands();
getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + "启动成功!"));
}
}
});