properly implement sv_sayName for custom say name
prevent trying to register live radar page for every server (oops) optimize event processing to prevent slow plugins from affecting command processing enable database connection resilency trim extra characters from T7 reassembled response
This commit is contained in:
@ -17,6 +17,7 @@ namespace LiveRadar
|
||||
public string Author => "RaidMax";
|
||||
|
||||
private readonly IConfigurationHandler<LiveRadarConfiguration> _configurationHandler;
|
||||
private bool addedPage;
|
||||
|
||||
public Plugin(IConfigurationHandlerFactory configurationHandlerFactory)
|
||||
{
|
||||
@ -27,11 +28,13 @@ namespace LiveRadar
|
||||
{
|
||||
// if it's an IW4 game, with custom callbacks, we want to
|
||||
// enable the live radar page
|
||||
if (E.Type == GameEvent.EventType.Start &&
|
||||
if (E.Type == GameEvent.EventType.Start &&
|
||||
S.GameName == Server.Game.IW4 &&
|
||||
S.CustomCallback)
|
||||
S.CustomCallback &&
|
||||
!addedPage)
|
||||
{
|
||||
E.Owner.Manager.GetPageList().Pages.Add(Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_RADAR_TITLE"], "/Radar/All");
|
||||
addedPage = true;
|
||||
}
|
||||
|
||||
if (E.Type == GameEvent.EventType.Unknown)
|
||||
|
Reference in New Issue
Block a user