From 8da95a78ff8055b0a5650cc4661f30072ff9e474 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Tue, 18 Oct 2022 11:45:09 +0200 Subject: [PATCH] Fixed rev join --- .../main/java/net/Indyuce/mmoitems/listener/ItemListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/ItemListener.java b/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/ItemListener.java index 8ebafdb3..c5daf4db 100644 --- a/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/ItemListener.java +++ b/MMOItems-Dist/src/main/java/net/Indyuce/mmoitems/listener/ItemListener.java @@ -9,6 +9,7 @@ import org.bukkit.Bukkit; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityPickupItemEvent; import org.bukkit.event.inventory.CraftItemEvent; @@ -73,7 +74,7 @@ public class ItemListener implements Listener { event.setCancelled(true); } - @EventHandler(ignoreCancelled = true) + @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void playerJoin(PlayerJoinEvent event) { Player player = event.getPlayer();