mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-01-25 09:41:20 +01:00
Merge pull request #377 from elBukkit/IgnoreCancelledDropEvents
Ignore cancelled PlayerDropItemEvent events
This commit is contained in:
commit
d58ec23daf
@ -280,7 +280,7 @@ public class MAGlobalListener implements Listener
|
|||||||
arena.getEventListener().onPlayerCommandPreprocess(event);
|
arena.getEventListener().onPlayerCommandPreprocess(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void playerDropItem(PlayerDropItemEvent event) {
|
public void playerDropItem(PlayerDropItemEvent event) {
|
||||||
if (!am.isEnabled()) return;
|
if (!am.isEnabled()) return;
|
||||||
for (Arena arena : am.getArenas())
|
for (Arena arena : am.getArenas())
|
||||||
|
Loading…
Reference in New Issue
Block a user