diff --git a/build.gradle.kts b/build.gradle.kts index 67eb2ef..7e58e16 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } group = "net.azisaba" -version = "6.7.7" +version = "6.7.8" java { toolchain.languageVersion.set(JavaLanguageVersion.of(8)) diff --git a/src/main/java/com/github/mori01231/lifecore/listener/DropNotifyListener.java b/src/main/java/com/github/mori01231/lifecore/listener/DropNotifyListener.java index 9c872c1..d275907 100644 --- a/src/main/java/com/github/mori01231/lifecore/listener/DropNotifyListener.java +++ b/src/main/java/com/github/mori01231/lifecore/listener/DropNotifyListener.java @@ -4,6 +4,7 @@ import com.github.mori01231.lifecore.util.ItemUtil; import org.bukkit.ChatColor; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerDropItemEvent; import org.bukkit.inventory.ItemStack; @@ -14,7 +15,7 @@ import java.util.Objects; public class DropNotifyListener implements Listener { - @EventHandler + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerDropItem(PlayerDropItemEvent e) { if (DropNotifyFile.contains(e.getPlayer().getUniqueId())) { List list = new ArrayList<>();