From 342da647d7fc602ca66c85fa4afcf2f96df5a992 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 29 Mar 2020 11:53:31 +0200 Subject: [PATCH] Fixing that the PlayerDropItemEvent was not fired --- .../src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java index 3147dd971..e1ec05c68 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java @@ -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(); }