mirror of
https://github.com/geekfrog/PermissionsTime.git
synced 2025-09-09 15:30:45 +00:00
低版本兼容 fix bug
This commit is contained in:
@ -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 + "启动成功!"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user