[SPIGOT-1772] Statistics disappeared Created: 05/Mar/16  Updated: 05/Mar/16  Resolved: 05/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: RobiRami Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: 1.9


 Description   

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)


 Comments   
Comment by Black Hole [ 05/Mar/16 ]

I created pull request 203 in CraftBukkit for this issue.

Generated at Fri Mar 21 18:15:51 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.