mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
hopefully finished with RCon changes.
added more tests. fixed issues from event changes (there's most definitely still issues related to that)
This commit is contained in:
@ -50,22 +50,24 @@ namespace WebfrontCore.Controllers
|
||||
{
|
||||
string duration = string.Empty;
|
||||
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
|
||||
switch (Duration)
|
||||
{
|
||||
case 1:
|
||||
duration = "1h";
|
||||
duration = $"1{loc["GLOBAL_TIME_HOURS"][0]}";
|
||||
break;
|
||||
case 2:
|
||||
duration = "6h";
|
||||
duration = $"6{loc["GLOBAL_TIME_HOURS"][0]}";
|
||||
break;
|
||||
case 3:
|
||||
duration = "1d";
|
||||
duration = $"1{loc["GLOBAL_TIME_DAYS"][0]}";
|
||||
break;
|
||||
case 4:
|
||||
duration = "2d";
|
||||
duration = $"2{loc["GLOBAL_TIME_DAYS"][0]}";
|
||||
break;
|
||||
case 5:
|
||||
duration = "1w";
|
||||
duration = $"1{loc["GLOBAL_TIME_WEEKS"][0]}";
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ namespace WebfrontCore.Controllers
|
||||
Manager.GetEventHandler().AddEvent(remoteEvent);
|
||||
List<CommandResponseInfo> response;
|
||||
// wait for the event to process
|
||||
if (await remoteEvent.WaitAsync(60 * 1000))
|
||||
if (!(await remoteEvent.WaitAsync(60 * 1000)).Failed)
|
||||
{
|
||||
response = server.CommandResult.Where(c => c.ClientId == client.ClientId).ToList();
|
||||
|
||||
|
Reference in New Issue
Block a user