mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-07 03:10:56 +01:00
Added %plan_sessions_unique_players_today%
Affects issues: - Fixed #1480
This commit is contained in:
parent
32ace71130
commit
5c2418dae2
@ -119,6 +119,10 @@ public class SessionPlaceHolders implements Placeholders {
|
|||||||
placeholders.registerStatic("sessions_unique_players_day",
|
placeholders.registerStatic("sessions_unique_players_day",
|
||||||
() -> database.query(PlayerCountQueries.uniquePlayerCount(dayAgo(), now(), serverUUID)));
|
() -> 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",
|
placeholders.registerStatic("sessions_unique_players_week",
|
||||||
() -> database.query(PlayerCountQueries.uniquePlayerCount(weekAgo(), now(), serverUUID)));
|
() -> database.query(PlayerCountQueries.uniquePlayerCount(weekAgo(), now(), serverUUID)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user