mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08: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