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

Add RCon support for S1x

This commit is contained in:
RaidMax
2021-04-16 13:35:51 -05:00
parent f8530b098f
commit 0592ab1e02
6 changed files with 48 additions and 4 deletions

View File

@ -22,7 +22,8 @@ namespace SharedLibraryCore.Commands
E.Message = E.Data;
Command C = null;
foreach (Command cmd in Manager.GetCommands())
foreach (Command cmd in Manager.GetCommands()
.Where(c => c.Name != null))
{
if (cmd.Name.Equals(CommandString, StringComparison.OrdinalIgnoreCase) ||
(cmd.Alias ?? "").Equals(CommandString, StringComparison.OrdinalIgnoreCase))

View File

@ -28,7 +28,8 @@ namespace SharedLibraryCore
T4 = 5,
T5 = 6,
T6 = 7,
T7 = 8
T7 = 8,
SHG1 = 9
}
public Server(ILogger<Server> logger, SharedLibraryCore.Interfaces.ILogger deprecatedLogger,