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

Additional updates to support performance bucket

This commit is contained in:
RaidMax
2024-02-17 15:17:42 -06:00
parent e1461582fa
commit 962abcf833
18 changed files with 273 additions and 128 deletions

View File

@ -219,9 +219,11 @@ namespace SharedLibraryCore
/// </summary>
/// <param name="server"></param>
/// <returns></returns>
public static bool IsZombieServer(this Server server)
public static bool IsZombieServer(this Server server) => (server as IGameServer).IsZombieServer();
public static bool IsZombieServer(this IGameServer server)
{
return new[] { Game.T4, Game.T5, Game.T6 }.Contains(server.GameName) &&
return new[] { Reference.Game.T4, Reference.Game.T5, Reference.Game.T6 }.Contains(server.GameCode) &&
ZmGameTypes.Contains(server.Gametype.ToLower());
}