mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-14 14:41:08 +00:00
Change event priority and ignore cancelled
Make it consistent with ShopItemListener#onPlayerMove(PlayerMoveEvent)
This commit is contained in:
parent
c2b6281410
commit
55a3bb87d3
@ -7,6 +7,7 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerMoveEvent;
|
import org.bukkit.event.player.PlayerMoveEvent;
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ public class HologramUpdateListener implements Listener {
|
|||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
|
||||||
public void onPlayerMove(PlayerMoveEvent e) {
|
public void onPlayerMove(PlayerMoveEvent e) {
|
||||||
|
|
||||||
if (e.getFrom().getBlockX() == e.getTo().getBlockX()
|
if (e.getFrom().getBlockX() == e.getTo().getBlockX()
|
||||||
|
Loading…
Reference in New Issue
Block a user