服务端bukkit1.12.2,skillapi版本1.90
情况:
昨天是正常的,今天突然出现skillapi不能正确初始化(似乎),表现为一众调用到sk接口的插件全部都报错了,例如
同时在启动阶段sk没有报错,输入sk相关指令,例如class reload,也会出现报错
尝试过删除sk和mccore的配置文件重新生成,没有效果
情况:
昨天是正常的,今天突然出现skillapi不能正确初始化(似乎),表现为一众调用到sk接口的插件全部都报错了,例如
Caused by: java.lang.IllegalStateException: Cannot use SkillAPI methods before it is enabled - add it to your plugin.yml as a dependency
at com.sucy.skill.SkillAPI.singleton(SkillAPI.java:274) ~[?:?]
at com.sucy.skill.SkillAPI.getPlayerAccountData(SkillAPI.java:558) ~[?:?]
>class reload
[02:14:56 WARN]: Unexpected exception while parsing console command "class reload"
org.bukkit.command.CommandException: Unhandled exception executing 'class reload' in class
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:148) ~[spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) ~[spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:634) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:444) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:407) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_361]
Caused by: java.lang.IllegalStateException: Cannot use SkillAPI methods before it is enabled - add it to your plugin.yml as a dependency
at com.sucy.skill.SkillAPI.singleton(SkillAPI.java:274) ~[?:?]
at com.sucy.skill.SkillAPI.reload(SkillAPI.java:766) ~[?:?]
at com.sucy.skill.cmd.CmdReload.execute(CmdReload.java:53) ~[?:?]
at com.rit.sucy.commands.ConfigurableCommand.execute(ConfigurableCommand.java:550) ~[?:?]
at com.rit.sucy.commands.ConfigurableCommand.execute(ConfigurableCommand.java:558) ~[?:?]
at com.rit.sucy.commands.ConfigurableCommand.execute(ConfigurableCommand.java:516) ~[?:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.12.2.jar:git-Spigot-79a30d7-f4830a1]
... 7 more
尝试过删除sk和mccore的配置文件重新生成,没有效果
建议使用枫溪的 ProSkillAPI