Added %[gamemode]_deaths% placeholder

Implements https://github.com/BentoBoxWorld/BentoBox/issues/1197
This commit is contained in:
Florian CUNY 2020-02-19 00:58:36 +01:00
parent 5cd2287d3a
commit 795925f0cd

View File

@ -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;
/**