Error with Stats
Jeje2201 opened this issue ยท 0 comments
I tried to add some stats to autorank who need Stats plugin, I don't use sql file to save but a flatfile. I tried with fish caught stats but I get this error :
org.bukkit.command.CommandException: Unhandled exception executing command 'ar' in plugin Autorank v3.7.3
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at org.bukkit.craftbukkit.v1_9_R2.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.PlayerConnection.handleCommand(PlayerConnection.java:1349) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1184) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]
at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]
Caused by: java.lang.NullPointerException
at me.armar.plugins.autorank.hooks.statsapi.StatsAPIHandler.getNormalStat(StatsAPIHandler.java:165) ~[?:?]
at me.armar.plugins.autorank.statsmanager.handlers.StatsHandler.getNormalStat(StatsHandler.java:101) ~[?:?]
at me.armar.plugins.autorank.playerchecker.requirement.FishCaughtRequirement.meetsRequirement(FishCaughtRequirement.java:37) ~[?:?]
at me.armar.plugins.autorank.rankbuilder.holders.RequirementsHolder.meetsRequirement(RequirementsHolder.java:76) ~[?:?]
at me.armar.plugins.autorank.commands.CheckCommand.check(CheckCommand.java:141) ~[?:?]
at me.armar.plugins.autorank.commands.CheckCommand.onCommand(CheckCommand.java:294) ~[?:?]
at me.armar.plugins.autorank.commands.manager.CommandsManager.onCommand(CommandsManager.java:159) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.9.4.jar:git-Spigot-8a048fe-042911f]
... 15 more
Here are my configs in your plugin :
citoyen:
requirements:
fish caught: 10
time: 8d
results:
rank change: citoyen; guerrier
command: 'broadcast &p vient de devenir Guerrier !'
message: 'Congratulations, tu es maintenant un Guerrier.'