-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
Environment:
OS: Ubuntu 12.04
Spigot: 1.10
Title say all, no errors in console only my plugin. The dragon the first time drops 68 level, the next times 19 but with this event I should change the level but remains constant!
private int random(int min, int max){ return (int) ((Math.random() * max) + min); } @EventHandler(priority=EventPriority.NORMAL, ignoreCancelled=true) public void onEntityDeath(EntityDeathEvent ev){ Entity e = ev.getEntity(); if(e instanceof EnderDragon){ ev.setDroppedExp(0); }else return; }
- is duplicated by
-
SPIGOT-5229 Cannot set droppedEXP on Enderdragon
-
- Resolved
-