-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
Hi,
It appears that in Spigot, a lot of statistics for mobs disappeared that existed in Spigot 1.8.
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 skeletons, zombies, blazes etc.
I get the following error:
[17:19:24 WARN]: java.lang.IllegalArgumentException: The supplied EntityType does not have a corresponding statistic [17:19:24 WARN]: at org.apache.commons.lang.Validate.notNull(Validate.java:192) [17:19:24 WARN]: at org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer.getStatistic(CraftPlayer.java:648)