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

Misc Qodana cleanups

This commit is contained in:
Amos
2024-07-02 23:05:47 +01:00
committed by Ayymoss
parent e94a0ae691
commit f2b273b878
13 changed files with 150 additions and 154 deletions

View File

@ -22,16 +22,14 @@ namespace IW4MAdmin.Application.Commands
RequiresTarget = false;
}
public override Task ExecuteAsync(GameEvent gameEvent)
public override async Task ExecuteAsync(GameEvent gameEvent)
{
var clientList = gameEvent.Owner.GetClientsAsList()
.Select(client =>
$"[(Color::Accent){client.ClientPermission.Name}(Color::White){(string.IsNullOrEmpty(client.Tag) ? "" : $" {client.Tag}")}(Color::White)][(Color::Yellow)#{client.ClientNumber}(Color::White)] {client.Name}")
.ToArray();
gameEvent.Origin.TellAsync(clientList, gameEvent.Owner.Manager.CancellationToken);
return Task.CompletedTask;
await gameEvent.Origin.TellAsync(clientList, gameEvent.Owner.Manager.CancellationToken);
}
}
}