mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-22 17:18:40 +01:00
Add unformatted top player list queries
- %plan_top_{category}_{n}_value_raw% Affects issues: - Close #3729
This commit is contained in:
parent
22e0b8ed82
commit
7e46c6ef63
@ -252,6 +252,11 @@ public class ServerPlaceHolders implements Placeholders {
|
|||||||
.map(TopListQueries.TopListEntry::getValue)
|
.map(TopListQueries.TopListEntry::getValue)
|
||||||
.map(query.getCategory().equals("player_kills") ? Function.identity() : formatters.timeAmount())
|
.map(query.getCategory().equals("player_kills") ? Function.identity() : formatters.timeAmount())
|
||||||
.orElse("-"));
|
.orElse("-"));
|
||||||
|
placeholders.registerStatic(String.format("top_%s_%s_%s_value_raw", query.getCategory(), query.getTimeSpan(), nth + 1),
|
||||||
|
parameters -> database.query(query.getQuery(nth, parameters))
|
||||||
|
.map(TopListQueries.TopListEntry::getValue)
|
||||||
|
.map(String::valueOf)
|
||||||
|
.orElse("-"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user