From 57435fdf349a9af989b13f9ddd70b0466370f25a Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 16 Jul 2020 23:24:11 +0100 Subject: [PATCH] verbosely ensure items cannot be duplicated when keeping inventory on death Seemingly there's duplication issues on some servers (and apparently even when only PlotSquared is installed). Likely a Spigot issue, but there's nothing to be done for Spigot on 1.13/14/15 --- .../com/plotsquared/bukkit/listener/PlayerEventListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java index 6d11cd75c..c4d7c6d90 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java @@ -1509,6 +1509,7 @@ public class PlayerEventListener extends PlotListener implements Listener { if (plot.getFlag(KeepInventoryFlag.class)) { plot.debug(event.getEntity().getName() + " kept their inventory because of keep-inventory = true"); + event.getDrops().clear(); event.setKeepInventory(true); } }