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
This commit is contained in:
dordsor21 2020-07-16 23:24:11 +01:00
parent 01ff9a34c2
commit 57435fdf34
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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);
}
}