-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
The Statistic.DROP throws an IllegalArgumentationException, with or without paramater, in Spigot 1.9, where as it didn't in Spigot 1.8
Bukkit.getPlayer("RobiRami").getStatistic(Statistic.DROP); Bukkit.getPlayer("RobiRami").getStatistic(Statistic.DROP, Material.STONE);
[14:34:13 WARN]: java.lang.IllegalArgumentException: Must supply additional paramater for this statistic [14:34:13 WARN]: at org.apache.commons.lang.Validate.isTrue(Validate.java:136) [14:34:13 WARN]: at org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer.getStatistic(CraftPlayer.java:560)
java.lang.IllegalArgumentException: The supplied Material does not have a corresponding statistic