mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-17 10:42:19 -05:00
update stats plugin for server caching and better DI usage
This commit is contained in:
@ -15,10 +15,10 @@ namespace IW4MAdmin.Plugins.Stats.Commands
|
||||
{
|
||||
class MostPlayedCommand : Command
|
||||
{
|
||||
public static async Task<List<string>> GetMostPlayed(Server s, ITranslationLookup translationLookup,
|
||||
public static async Task<List<string>> GetMostPlayed(IGameServer gameServer, ITranslationLookup translationLookup,
|
||||
IDatabaseContextFactory contextFactory)
|
||||
{
|
||||
var serverId = StatManager.GetIdForServer(s);
|
||||
var serverId = gameServer.LegacyDatabaseId;
|
||||
|
||||
var mostPlayed = new List<string>
|
||||
{
|
||||
|
Reference in New Issue
Block a user