mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-07-01 09:30:16 -05:00
partial T7 (BO3) support. includes rcon communication improvements and a small fix for displaying live radar tab
This commit is contained in:
@ -25,6 +25,15 @@ namespace LiveRadar
|
||||
|
||||
public Task OnEventAsync(GameEvent E, Server S)
|
||||
{
|
||||
// if it's an IW4 game, with custom callbacks, we want to
|
||||
// enable the live radar page
|
||||
if (E.Type == GameEvent.EventType.Start &&
|
||||
S.GameName == Server.Game.IW4 &&
|
||||
S.CustomCallback)
|
||||
{
|
||||
E.Owner.Manager.GetPageList().Pages.Add(Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_RADAR_TITLE"], "/Radar/All");
|
||||
}
|
||||
|
||||
if (E.Type == GameEvent.EventType.Unknown)
|
||||
{
|
||||
if (E.Data?.StartsWith("LiveRadar") ?? false)
|
||||
@ -59,11 +68,6 @@ namespace LiveRadar
|
||||
_configurationHandler.Set((LiveRadarConfiguration)new LiveRadarConfiguration().Generate());
|
||||
await _configurationHandler.Save();
|
||||
}
|
||||
|
||||
if (manager.GetServers().Any(_server => _server.GameName == Server.Game.IW4))
|
||||
{
|
||||
manager.GetPageList().Pages.Add(Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_RADAR_TITLE"], "/Radar/All");
|
||||
}
|
||||
}
|
||||
|
||||
public Task OnTickAsync(Server S)
|
||||
|
Reference in New Issue
Block a user