mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
small tweak to restart and runas command
This commit is contained in:
@ -54,11 +54,10 @@ namespace SharedLibraryCore.Commands
|
||||
RequiresTarget = false;
|
||||
}
|
||||
|
||||
public override Task ExecuteAsync(GameEvent E)
|
||||
public override async Task ExecuteAsync(GameEvent gameEvent)
|
||||
{
|
||||
E.Owner.Manager.Restart();
|
||||
E.Origin.Tell(_translationLookup["COMMANDS_RESTART_SUCCESS"]);
|
||||
return Task.CompletedTask;
|
||||
await gameEvent.Owner.Manager.Restart();
|
||||
gameEvent.Origin.Tell(_translationLookup["COMMANDS_RESTART_SUCCESS"]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user