using SharedLibraryCore; using SharedLibraryCore.Commands; using SharedLibraryCore.Configuration; using SharedLibraryCore.Database.Models; using SharedLibraryCore.Interfaces; using System.Threading.Tasks; namespace ClanTagRankCommands.Commands { /// /// Example script command /// /// 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"); } } }