-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
Environment:
git-Spigot-16c940b-221508d
Hi,
It appears that in Spigot, a lot of statistics for mobs disappeared that existed in Spigot 1.10.
I'm using the following code:
Bukkit.getPlayer("RobiRami").getStatistic(Statistic.KILL_ENTITY, type);
where type is the EntityType.
Some of the broken entitytype's include endermans etc.
I get the following error:
[18:50:46 ERROR]: [LeaderHeads] Error while updating the va-enderman statistic java.lang.IllegalArgumentException: The supplied EntityType does not have a corresponding statistic at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot.jar:git-Spigot-16c940b-221508d] at org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer.getStatistic(CraftPlayer.java:682) ~[spigot.jar:git-Spigot-16c940b-221508d] at me.robin.leaderheads.datacollectors.ag.ap.requestAll(ap.java:18) ~[LeaderHeads.jar:?] at me.robin.leaderheads.datacollectors.b1.h(b1.java:96) [LeaderHeads.jar:?] at me.robin.leaderheads.datacollectors.b0.run(b0.java:2) [LeaderHeads.jar:?] at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71) [spigot.jar:git-Spigot-16c940b-221508d] at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot.jar:git-Spigot-16c940b-221508d] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_60] at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]