Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Merge pull request #382 from ForceUpdate1/1.15
Fixing that the PlayerDropItemEvent was not fired
Dieser Commit ist enthalten 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();
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren