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

add ServerCommandRequestExecuteEvent implementation

This commit is contained in:
RaidMax
2023-04-09 14:07:30 -05:00
parent 892d2c8fc5
commit e3bbb048b6
8 changed files with 109 additions and 42 deletions

View File

@ -1606,6 +1606,12 @@ namespace IW4MAdmin
});
}
public override Task<string[]> ExecuteCommandAsync(string command, CancellationToken token = default) =>
Utilities.ExecuteCommandAsync(this, command, token);
public override Task SetDvarAsync(string name, object value, CancellationToken token = default) =>
Utilities.SetDvarAsync(this, name, value, token);
public override async Task TempBan(string reason, TimeSpan length, EFClient targetClient, EFClient originClient)
{
// ensure player gets kicked if command not performed on them in the same server