From 361349ff601c4335acb10fa14b00fb7cf7f3f84d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 2 Aug 2019 19:25:47 +1000 Subject: [PATCH] SPIGOT-5226: Update Javadoc of PlayerDeathEvent By: md_5 --- .../java/org/bukkit/event/entity/PlayerDeathEvent.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java index f0dda632d4..07a52441a5 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java @@ -134,9 +134,9 @@ public class PlayerDeathEvent extends EntityDeathEvent { *

* This overrides all other EXP settings *

- * This doesn't prevent prevent the EXP from dropping. + * This doesn't prevent prevent the EXP from dropping. * {@link #setDroppedExp(int)} should be used stop the - * EXP from dropping. + * EXP from dropping. * * @param keepLevel True to keep all current value levels */ @@ -146,6 +146,10 @@ public class PlayerDeathEvent extends EntityDeathEvent { /** * Sets if the Player keeps inventory on death. + *

+ * This doesn't prevent prevent the items from dropping. + * {@code getDrops().clear()} should be used stop the + * items from dropping. * * @param keepInventory True to keep the inventory */