From 2991bec44de29e867a001a0e33821f00909afed7 Mon Sep 17 00:00:00 2001 From: samczsun Date: Tue, 24 May 2016 16:04:15 -0400 Subject: [PATCH] Fix listener priorities (again). Fixes PC-370 --- .../src/mineplex/game/clans/clans/murder/MurderManager.java | 2 +- .../src/mineplex/game/clans/clans/observer/ObserverManager.java | 2 +- .../src/mineplex/game/clans/economy/GoldManager.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/murder/MurderManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/murder/MurderManager.java index 2f5fcaf30..8f10f9f0b 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/murder/MurderManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/murder/MurderManager.java @@ -73,7 +73,7 @@ public class MurderManager extends MiniClientPlugin } } - @EventHandler + @EventHandler (ignoreCancelled = true) public void onPickup(PlayerPickupItemEvent event) { refreshClient(event.getPlayer()); diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/observer/ObserverManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/observer/ObserverManager.java index b5e97bdbc..606c1ec68 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/observer/ObserverManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/observer/ObserverManager.java @@ -131,7 +131,7 @@ public class ObserverManager extends MiniPlugin } } - @EventHandler + @EventHandler (priority = EventPriority.LOWEST) public void onPickup(PlayerPickupItemEvent event) { ObserverData data = _observerMap.get(event.getPlayer()); diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java index ab3a0b03c..a86f41fd2 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java @@ -113,7 +113,7 @@ public class GoldManager extends MiniPlugin } } - @EventHandler + @EventHandler (ignoreCancelled = true) public void onPickup(PlayerPickupItemEvent event) { if (_itemSet.contains(event.getItem()))