From 55a3bb87d3919859cd2bd3b7e714072746120ec0 Mon Sep 17 00:00:00 2001 From: MineTheCube Date: Thu, 18 Aug 2016 14:34:43 +0200 Subject: [PATCH] Change event priority and ignore cancelled Make it consistent with ShopItemListener#onPlayerMove(PlayerMoveEvent) --- .../epiceric/shopchest/listeners/HologramUpdateListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/listeners/HologramUpdateListener.java b/src/main/java/de/epiceric/shopchest/listeners/HologramUpdateListener.java index 5494144..3fe9fc7 100644 --- a/src/main/java/de/epiceric/shopchest/listeners/HologramUpdateListener.java +++ b/src/main/java/de/epiceric/shopchest/listeners/HologramUpdateListener.java @@ -7,6 +7,7 @@ import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerMoveEvent; @@ -18,7 +19,7 @@ public class HologramUpdateListener implements Listener { this.plugin = plugin; } - @EventHandler + @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onPlayerMove(PlayerMoveEvent e) { if (e.getFrom().getBlockX() == e.getTo().getBlockX()