44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using SharedLibraryCore;
|
|
using SharedLibraryCore.Commands;
|
|
using SharedLibraryCore.Configuration;
|
|
using SharedLibraryCore.Database.Models;
|
|
using SharedLibraryCore.Interfaces;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace ClanTagRankCommands.Commands
|
|
{
|
|
|
|
/// <summary>
|
|
/// Example script command
|
|
/// </summary>
|
|
///
|
|
|
|
public class MuteClearCommand : Command
|
|
{
|
|
|
|
|
|
|
|
|
|
public MuteClearCommand(CommandConfiguration config, ITranslationLookup lookup, IMetaService metaService, IConfigurationHandlerFactory configurationHandlerFactory) : base(config, lookup)
|
|
{
|
|
|
|
|
|
Name = "MuteClear";
|
|
Description = "clears the muted player list for current server";
|
|
Alias = "mc";
|
|
Permission = EFClient.Permission.Administrator;
|
|
RequiresTarget = false;
|
|
|
|
}
|
|
|
|
public override async Task ExecuteAsync(GameEvent E)
|
|
{
|
|
await E.Owner.ExecuteCommandAsync("muteclear");
|
|
E.Origin.Tell("mute list cleared");
|
|
|
|
|
|
}
|
|
}
|
|
}
|