1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Finish implementation of configuable command permissions

This commit is contained in:
RaidMax
2020-01-31 20:15:07 -06:00
parent 475ef92917
commit 786eda7937
38 changed files with 373 additions and 213 deletions

View File

@ -477,12 +477,14 @@ namespace IW4MAdmin.Plugins.Stats
async Task<string> topStats(Server s)
{
return string.Join(Environment.NewLine, await Commands.TopStats.GetTopStats(s));
// todo: this needs to needs to be updated when we DI the lookup
return string.Join(Environment.NewLine, await Commands.TopStats.GetTopStats(s, Utilities.CurrentLocalization.LocalizationIndex));
}
async Task<string> mostPlayed(Server s)
{
return string.Join(Environment.NewLine, await Commands.MostPlayed.GetMostPlayed(s));
// todo: this needs to needs to be updated when we DI the lookup
return string.Join(Environment.NewLine, await Commands.MostPlayedCommand.GetMostPlayed(s, Utilities.CurrentLocalization.LocalizationIndex));
}
manager.GetMessageTokens().Add(new MessageToken("TOTALKILLS", totalKills));