Compare commits
3 Commits
release/pr
...
develop
Author | SHA1 | Date | |
---|---|---|---|
|
e6d159fc03 | ||
|
f3adb75d55 | ||
|
d7c24dc98f |
31
Application/Commands/ClearAllReportsCommand.cs
Normal file
31
Application/Commands/ClearAllReportsCommand.cs
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
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,6 +137,8 @@ waitForFrameThread()
|
|||||||
|
|
||||||
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
||||||
{
|
{
|
||||||
|
self endon( "disconnect" );
|
||||||
|
|
||||||
currentIndex = self.currentAnglePosition;
|
currentIndex = self.currentAnglePosition;
|
||||||
wait( 0.05 * afterFrameCount );
|
wait( 0.05 * afterFrameCount );
|
||||||
|
|
||||||
|
@ -143,6 +143,8 @@ waitForFrameThread()
|
|||||||
|
|
||||||
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
waitForAdditionalAngles( logString, beforeFrameCount, afterFrameCount )
|
||||||
{
|
{
|
||||||
|
self endon( "disconnect" );
|
||||||
|
|
||||||
currentIndex = self.currentAnglePosition;
|
currentIndex = self.currentAnglePosition;
|
||||||
wait( 0.05 * afterFrameCount );
|
wait( 0.05 * afterFrameCount );
|
||||||
|
|
||||||
|
@ -56,4 +56,4 @@ Feel free to join the **IW4MAdmin** [Discord](https://discord.gg/ZZFK5p3)
|
|||||||
If you come across an issue, bug, or feature request please post an [issue](https://github.com/RaidMax/IW4M-Admin/issues)
|
If you come across an issue, bug, or feature request please post an [issue](https://github.com/RaidMax/IW4M-Admin/issues)
|
||||||
|
|
||||||
|
|
||||||
#### Explore the [wiki](https://git.rimmyscorner.com/Parasyn/IW4M-Admin/wiki) to find more information.
|
#### Explore the [wiki](https://github.com/RaidMax/IW4M-Admin/wiki) to find more information.
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB |
Loading…
Reference in New Issue
Block a user