mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Merge pull request #382 from ForceUpdate1/1.15
Fixing that the PlayerDropItemEvent was not fired
This commit is contained in:
commit
8597ab1ce8
@ -148,6 +148,7 @@ public class BukkitPlayer extends AbstractPlayerActor {
|
||||
Item
|
||||
dropped = player.getWorld().dropItem(player.getLocation(), stack);
|
||||
PlayerDropItemEvent event = new PlayerDropItemEvent(player, dropped);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
if (event.isCancelled()) {
|
||||
dropped.remove();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user