Change event priority and ignore cancelled

Make it consistent with ShopItemListener#onPlayerMove(PlayerMoveEvent)
This commit is contained in:
MineTheCube 2016-08-18 14:34:43 +02:00
parent c2b6281410
commit 55a3bb87d3

View File

@ -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()