mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-20 12:10:25 -05:00
Moved client database into manager, as it should be.. Some more transitional things and a few fixes.
This commit is contained in:
@ -48,9 +48,8 @@
|
||||
<Compile Include="Plugin.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
</ItemGroup>
|
||||
|
@ -95,7 +95,7 @@ namespace EventAPI
|
||||
}
|
||||
}
|
||||
|
||||
public async Task OnLoad()
|
||||
public async Task OnLoadAsync()
|
||||
{
|
||||
apiEvents = new Queue<RestEvent>();
|
||||
flaggedMessagesText = new List<string>();
|
||||
@ -103,29 +103,28 @@ namespace EventAPI
|
||||
WebService.pageList.Add(new EventsJSON());
|
||||
}
|
||||
|
||||
public async Task OnUnload()
|
||||
public async Task OnUnloadAsync()
|
||||
{
|
||||
apiEvents.Clear();
|
||||
activeServers.Clear();
|
||||
}
|
||||
|
||||
public async Task OnTick(Server S)
|
||||
public async Task OnTickAsync(Server S)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public async Task OnEvent(Event E, Server S)
|
||||
public async Task OnEventAsync(Event E, Server S)
|
||||
{
|
||||
if (E.Type == Event.GType.Start)
|
||||
{
|
||||
activeServers.Add(S);
|
||||
S.Log.Write("Event API now running on " + S.getName(), Log.Level.Production);
|
||||
}
|
||||
|
||||
if (E.Type == Event.GType.Stop)
|
||||
{
|
||||
// fixme: this will be bad once FTP is working and there can be multiple servers on the same port.
|
||||
activeServers.RemoveAll(s => s.getPort() == S.getPort());
|
||||
S.Log.Write("Event API no longer running on " + S.getName(), Log.Level.Production);
|
||||
}
|
||||
|
||||
if (E.Type == Event.GType.Connect)
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net40" requireReinstallation="true" />
|
||||
<package id="Newtonsoft.Json" version="10.0.2" targetFramework="net45" />
|
||||
</packages>
|
Reference in New Issue
Block a user