Permissions module now works properly with Clas Of Clans module, thx rusty

This commit is contained in:
Kwoth 2016-07-15 22:54:39 +02:00
parent 06a156d73f
commit f0c290fd16

View File

@ -6,6 +6,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using NadekoBot.Modules.Permissions.Classes;
namespace NadekoBot.Modules.ClashOfClans namespace NadekoBot.Modules.ClashOfClans
{ {
@ -22,7 +23,9 @@ namespace NadekoBot.Modules.ClashOfClans
manager.CreateCommands("", cgb => manager.CreateCommands("", cgb =>
{ {
cgb.CreateCommand(Prefix + "createwar") cgb.AddCheck(PermissionChecker.Instance);
cgb.CreateCommand(Prefix + "createwar")
.Alias(Prefix + "cw") .Alias(Prefix + "cw")
.Description( .Description(
$"Creates a new war by specifying a size (>10 and multiple of 5) and enemy clan name. |{Prefix}cw 15 The Enemy Clan") $"Creates a new war by specifying a size (>10 and multiple of 5) and enemy clan name. |{Prefix}cw 15 The Enemy Clan")