StackMob-3 icon indicating copy to clipboard operation
StackMob-3 copied to clipboard

Drops in new event

Open Parozzz opened this issue 7 years ago • 2 comments

Hey there, I have used your plugin's API quite a lot. Since the new version (v2), most of it got lost. I've quickly read the source and there is no way to actually detect which items have been dropped by which stacked mob using your plugin.

Solutions:

  1. Instead of dropping these items directly (using the World#dropItem), add them back the EntityDeathEvent#getDrops list as they are normally dropped after the event is been called and every other plugin can actually modify these items (This would be better since there would be no need to every plugin to add specific support).

  2. Add a custom event, as it was in v1.

Parozzz avatar Mar 02 '18 21:03 Parozzz

The reason why the drops don't get set back in the event is because it modifies the drops last time I checked? Although that could have been an issue with something else.

ploppyperson avatar Jul 28 '18 20:07 ploppyperson

What are you trying to do anyway? StackMob just multiplies the drops in the bukkit getDrops method. @Parozzz

ploppyperson avatar Sep 01 '18 16:09 ploppyperson