deleted localization files as they're now generated during release

reintroduce throttling for servers that are unreachable (defaults to 60 seconds between polls)
small revert to the RektT5M parser contell -> tell
add migration to introduce gamename to server
impllement quickmessage mapping
This commit is contained in:
RaidMax
2019-04-23 17:27:20 -05:00
parent 0711249a46
commit 03ae3b5822
22 changed files with 833 additions and 1118 deletions

View File

@ -222,13 +222,22 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
{
Port = sv.GetPort(),
EndPoint = sv.ToString(),
ServerId = serverId
ServerId = serverId,
GameName = sv.GameName
};
server = serverSet.Add(server).Entity;
// this doesn't need to be async as it's during initialization
ctx.SaveChanges();
}
// we want to set the gamename up if it's never been set, or it changed
else if (!server.GameName.HasValue || server.GameName.HasValue && server.GameName.Value != sv.GameName)
{
server.GameName = sv.GameName;
ctx.Entry(server).Property(_prop => _prop.GameName).IsModified = true;
ctx.SaveChanges();
}
}
// check to see if the stats have ever been initialized