mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47: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
|
Item
|
||||||
dropped = player.getWorld().dropItem(player.getLocation(), stack);
|
dropped = player.getWorld().dropItem(player.getLocation(), stack);
|
||||||
PlayerDropItemEvent event = new PlayerDropItemEvent(player, dropped);
|
PlayerDropItemEvent event = new PlayerDropItemEvent(player, dropped);
|
||||||
|
Bukkit.getPluginManager().callEvent(event);
|
||||||
if (event.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
dropped.remove();
|
dropped.remove();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user