Added %plan_sessions_unique_players_today%

Affects issues:
- Fixed #1480
This commit is contained in:
Risto Lahtela 2020-06-07 12:19:20 +03:00
parent 32ace71130
commit 5c2418dae2

View File

@ -119,6 +119,10 @@ public class SessionPlaceHolders implements Placeholders {
placeholders.registerStatic("sessions_unique_players_day",
() -> database.query(PlayerCountQueries.uniquePlayerCount(dayAgo(), now(), serverUUID)));
placeholders.registerStatic("sessions_unique_players_today",
() -> database.query(PlayerCountQueries.uniquePlayerCounts(dayAgo(), now(), config.getTimeZone().getOffset(now()), serverUUID))
.lastEntry().getValue());
placeholders.registerStatic("sessions_unique_players_week",
() -> database.query(PlayerCountQueries.uniquePlayerCount(weekAgo(), now(), serverUUID)));