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

Reverted some of plugin method signatures as I realized it didn't really make sense.

This commit is contained in:
RaidMax
2017-06-13 18:33:47 -04:00
parent 45cb985701
commit 2dc8f55e7c
13 changed files with 122 additions and 109 deletions

View File

@ -53,6 +53,10 @@ namespace Plugin
{
if (E.Type == Event.GType.Start)
{
ConfigManager.AddConfiguration(S);
if (ConfigManager.GetConfiguration(S).Keys.Count == 0)
ConfigManager.AddProperty(S, new KeyValuePair<string, object>("Enabled", false));
try
{
await S.GetDvarAsync<int>("scr_intermission_time");
@ -65,13 +69,9 @@ namespace Plugin
}
}
public async Task OnLoadAsync(Server S)
public async Task OnLoadAsync()
{
ConfigManager = new ConfigurationManager(typeof(FastRestartPlugin));
ConfigManager.AddConfiguration(S);
if (ConfigManager.GetConfiguration(S).Keys.Count == 0)
ConfigManager.AddProperty(S, new KeyValuePair<string, object>("Enabled", false));
ConfigManager = new ConfigurationManager(typeof(FastRestartPlugin));
}
public async Task OnTickAsync(Server S)
@ -92,7 +92,7 @@ namespace Plugin
}
}
public Task OnUnloadAsync(Server S)
public Task OnUnloadAsync()
{
return null;
}