Skip to content

Commit

Permalink
fix: dropnotify says dropped even if event is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Oct 14, 2023
1 parent f473f11 commit 4bc23a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "net.azisaba"
version = "6.7.7"
version = "6.7.8"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<String> list = new ArrayList<>();
Expand Down

0 comments on commit 4bc23a0

Please sign in to comment.