Compare commits
4 Commits
develop
...
2023.09.14
Author | SHA1 | Date | |
---|---|---|---|
03b5b8b143 | |||
2c99f7b48e | |||
e6cdae5a6b | |||
69691f75f4 |
@ -1,31 +0,0 @@
|
||||
using System.Threading.Tasks;
|
||||
using Data.Models.Client;
|
||||
using SharedLibraryCore;
|
||||
using SharedLibraryCore.Configuration;
|
||||
using SharedLibraryCore.Interfaces;
|
||||
|
||||
namespace IW4MAdmin.Application.Commands;
|
||||
|
||||
public class ClearAllReportsCommand : Command
|
||||
{
|
||||
public ClearAllReportsCommand(CommandConfiguration config, ITranslationLookup layout) : base(config, layout)
|
||||
{
|
||||
Name = "clearallreports";
|
||||
Description = _translationLookup["COMMANDS_REPORTS_CLEAR_DESC"];
|
||||
Alias = "car";
|
||||
Permission = EFClient.Permission.Administrator;
|
||||
RequiresTarget = false;
|
||||
}
|
||||
|
||||
public override Task ExecuteAsync(GameEvent gameEvent)
|
||||
{
|
||||
foreach (var server in gameEvent.Owner.Manager.GetServers())
|
||||
{
|
||||
server.Reports.Clear();
|
||||
}
|
||||
|
||||
gameEvent.Origin.Tell(_translationLookup["COMMANDS_REPORTS_CLEAR_SUCCESS"]);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
@ -137,8 +137,6 @@ waitForFrameThread()
|
||||
|
||||
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
currentIndex = self.currentAnglePosition;
|
||||
wait( 0.05 * afterFrameCount );
|
||||
|
||||
@ -248,4 +246,4 @@ Callback_PlayerDisconnect()
|
||||
{
|
||||
level notify( "disconnected", self );
|
||||
self maps\mp\gametypes\_playerlogic::Callback_PlayerDisconnect();
|
||||
}
|
||||
}
|
@ -143,8 +143,6 @@ waitForFrameThread()
|
||||
|
||||
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
currentIndex = self.currentAnglePosition;
|
||||
wait( 0.05 * afterFrameCount );
|
||||
|
||||
@ -262,4 +260,4 @@ Callback_PlayerDisconnect()
|
||||
{
|
||||
level notify( "disconnected", self );
|
||||
self [[maps\mp\gametypes\_globallogic_player::callback_playerdisconnect]]();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user