Increased priority of item pickup event so it is handled through the
Jobs plugin first to prevent conflicts with the filter cubes/vacuum cubes.
This commit is contained in:
parent
bc8b73977f
commit
8f9f537389
Binary file not shown.
@ -5750,9 +5750,12 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
||||
GenericFunctions.giveItem(p, collect);
|
||||
}
|
||||
|
||||
@EventHandler(priority=EventPriority.LOW,ignoreCancelled = true)
|
||||
@EventHandler(priority=EventPriority.HIGH,ignoreCancelled = true)
|
||||
public void onItemPickup(PlayerPickupItemEvent ev) {
|
||||
//Arrow quiver code goes here.
|
||||
if (ev.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
log("Pickup Metadata: "+ev.getItem().getItemStack().getItemMeta().toString(),5);
|
||||
Player p = ev.getPlayer();
|
||||
//GenericFunctions.updateSetItems(p.getInventory());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user