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

Move/add client getters to ScriptPluginExtensions

This commit is contained in:
RaidMax
2024-06-25 20:51:03 -05:00
parent b003ba2b75
commit e6272f610a
2 changed files with 15 additions and 0 deletions

View File

@ -434,6 +434,7 @@ namespace SharedLibraryCore
public abstract Task<long> GetIdForServer(Server server = null);
[Obsolete("Use the ScriptPluginExtension helper")]
public EFClient GetClientByNumber(int clientNumber) =>
GetClientsAsList().FirstOrDefault(client => client.ClientNumber == clientNumber);
}