From d46bd3c86c89088c5fd39f4e148f22cf86372c82 Mon Sep 17 00:00:00 2001 From: Andre601 Date: Sun, 13 Oct 2024 15:24:41 +0200 Subject: [PATCH] Add support for Player locale placeholder --- .../bungeetablistplus/placeholder/PlayerPlaceholderResolver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bungee/src/main/java/codecrafter47/bungeetablistplus/placeholder/PlayerPlaceholderResolver.java b/bungee/src/main/java/codecrafter47/bungeetablistplus/placeholder/PlayerPlaceholderResolver.java index 22820ec3..1e81085f 100644 --- a/bungee/src/main/java/codecrafter47/bungeetablistplus/placeholder/PlayerPlaceholderResolver.java +++ b/bungee/src/main/java/codecrafter47/bungeetablistplus/placeholder/PlayerPlaceholderResolver.java @@ -140,6 +140,7 @@ public PlayerPlaceholderResolver(ServerPlaceholderResolver serverPlaceholderReso addPlaceholder("session_duration_total_seconds", create(BungeeData.BungeeCord_SessionDuration, duration -> duration == null ? null : (int) duration.getSeconds(), TypeToken.INTEGER)); addPlaceholder("session_duration_minutes", create(BungeeData.BungeeCord_SessionDuration, duration -> duration == null ? null : (int) ((duration.getSeconds() % 3600) / 60), TypeToken.INTEGER)); addPlaceholder("session_duration_hours", create(BungeeData.BungeeCord_SessionDuration, duration -> duration == null ? null : (int) (duration.getSeconds() / 3600), TypeToken.INTEGER)); + addPlaceholder("locale", create(BungeeData.BungeeCord_Locale)); addPlaceholder("essentials_afk", create(BukkitData.Essentials_IsAFK)); addPlaceholder("is_hidden", create(BTLPBungeeDataKeys.DATA_KEY_IS_HIDDEN)); addPlaceholder("gamemode", create(BTLPBungeeDataKeys.DATA_KEY_GAMEMODE));