mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 09:17:39 +00:00
Fixing that the PlayerDropItemEvent was not fired
This commit is contained in:
parent
8c7d4c0cc5
commit
342da647d7
@ -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