mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
More cleanup
project renaming moved PluginImporter to SharedLibrary config writer abstracted for plugins
This commit is contained in:
@ -133,12 +133,12 @@ namespace StatsPlugin
|
||||
get { return "RaidMax"; }
|
||||
}
|
||||
|
||||
public async Task OnLoadAsync()
|
||||
public async Task OnLoadAsync(Server S)
|
||||
{
|
||||
statLists = new List<StatTracking>();
|
||||
}
|
||||
|
||||
public async Task OnUnloadAsync()
|
||||
public async Task OnUnloadAsync(Server S)
|
||||
{
|
||||
statLists.Clear();
|
||||
}
|
||||
@ -155,8 +155,8 @@ namespace StatsPlugin
|
||||
statLists.Add(new StatTracking(S.GetPort()));
|
||||
if (statLists.Count == 1)
|
||||
{
|
||||
S.Manager.GetMessageTokens().Add(new MessageToken("TOTALKILLS", GetTotalKills));
|
||||
S.Manager.GetMessageTokens().Add(new MessageToken("TOTALPLAYTIME", GetTotalPlaytime));
|
||||
S.Manager.GetMessageTokens().Add(new SharedLibrary.Helpers.MessageToken("TOTALKILLS", GetTotalKills));
|
||||
S.Manager.GetMessageTokens().Add(new SharedLibrary.Helpers.MessageToken("TOTALPLAYTIME", GetTotalPlaytime));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user