From 795925f0cd4ef9c366a9e434f3c0ca7db64f9503 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Wed, 19 Feb 2020 00:58:36 +0100 Subject: [PATCH] Added %[gamemode]_deaths% placeholder Implements https://github.com/BentoBoxWorld/BentoBox/issues/1197 --- .../world/bentobox/bentobox/lists/GameModePlaceholder.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java index b46b6195d..84b4c9f7b 100644 --- a/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java +++ b/src/main/java/world/bentobox/bentobox/lists/GameModePlaceholder.java @@ -298,7 +298,12 @@ public enum GameModePlaceholder { * {@code -1} is unlimited. * @since 1.5.0 */ - RESETS_LEFT("resets_left", (addon, user, island) -> String.valueOf(addon.getPlayers().getResetsLeft(addon.getOverWorld(), user.getUniqueId()))); + RESETS_LEFT("resets_left", (addon, user, island) -> String.valueOf(addon.getPlayers().getResetsLeft(addon.getOverWorld(), user.getUniqueId()))), + /** + * Returns how many times this player died. + * @since 1.12.0 + */ + DEATHS("deaths", (addon, user, island) -> String.valueOf(addon.getPlayers().getDeaths(addon.getOverWorld(), user.getUniqueId()))); private String placeholder; /**