Skip to content

Commit

Permalink
Add support for Player locale placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre601 committed Oct 13, 2024
1 parent e9402ca commit d46bd3c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d46bd3c

Please sign in to comment.