Autorank

Autorank

380k Downloads

Votes And Stats

Coldreaper opened this issue ยท 9 comments

commented

Config File

ranks:
Watcher:
requirements:
time:
value: 2h
results:
rank change: Watcher;Novice
command: 'say &p just got a promotion; broadcast &p has just been promoted to Novice!; cp give &p 2 Rankup; eco give &p 1000'
message: 'Congratulations, you are now a Novice And You Earned 2 FallenPoints As Well as $1000!.'
Novice:
requirements:
time:
value: 8h
votes:
value: 4
results:
rank change: Novice;Player
command: 'say &p just got a promotion; broadcast &p has just been promoted to player!; cp give &p 2 Rankup; eco give &p 2500'
message: 'Congratulations, you are now a Player And You Earned 3 FallenPoints As Well as $2500!.'

Console Output on /ar check >>>>

[14:01:30 INFO]: Coldreaper issued server command: /ar check

org.bukkit.command.CommandException: Unhandled exception executing command 'ar' in plugin Autorank v2.7.2 Beta
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-1169]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192) ~[craftbukkit.jar:git-Spigot-1169]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:546) ~[craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:941) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:65) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:647) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:259) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:530) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:442) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Spigot-1169]
Caused by: java.lang.NullPointerException
at nl.lolmewn.stats.player.StatsPlayer.hasStat(StatsPlayer.java:70) ~[?:?]
at nl.lolmewn.stats.player.StatsPlayer.getStatData(StatsPlayer.java:127) ~[?:?]
at me.armar.plugins.autorank.statsapi.StatsHandler.getNormalStat(StatsHandler.java:95) ~[?:?]
at me.armar.plugins.autorank.playerchecker.requirement.TotalVotesRequirement.meetsRequirement(TotalVotesRequirement.java:53) ~[?:?]
at me.armar.plugins.autorank.commands.CommandsHandler.check(CommandsHandler.java:679) ~[?:?]
at me.armar.plugins.autorank.commands.CommandsHandler.onCommand(CommandsHandler.java:110) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-1169]

commented

What version of Stats are you using?

commented

Do you have beta functions enabled?

commented

Nope.

commented

It works, So i tried /ar syncstats again.
Return Error.

[15:39:19 INFO]: Coldreaper issued server command: /stats

[15:39:39 INFO]: Coldreaper issued server command: /ar syncstats

org.bukkit.command.CommandException: Unhandled exception executing command 'ar' in plugin Autorank v2.7.2 Beta
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-1169]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192) ~[craftbukkit.jar:git-Spigot-1169]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:546) ~[craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:941) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:65) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:647) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:259) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:530) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:442) [craftbukkit.jar:git-Spigot-1169]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Spigot-1169]
Caused by: java.lang.NullPointerException
at nl.lolmewn.stats.player.StatsPlayer.hasStat(StatsPlayer.java:64) ~[?:?]
at nl.lolmewn.stats.player.StatsPlayer.getStatData(StatsPlayer.java:117) ~[?:?]
at nl.lolmewn.stats.api.StatsAPI.getPlaytime(StatsAPI.java:35) ~[?:?]
at me.armar.plugins.autorank.commands.CommandsHandler.onCommand(CommandsHandler.java:535) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-1169]
... 13 more

commented

You need to have beta functions enabled.

commented

Thats enabled. but what about the Syncstats error output now ?

commented

Okay good.

commented

Fixed it, had to reset stats and autorank SQLDatabase.