Skip to content

Commit 58c048f

Browse files
committed
Added Command Duplication check in config
1 parent 5c958cc commit 58c048f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CustomCommands/CustomCommands.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace CustomCommands;
1212
public partial class CustomCommands : BasePlugin, IPluginConfig<CustomCommandsConfig>
1313
{
1414
public override string ModuleName => "CustomCommands";
15-
public override string ModuleVersion => "1.0.6";
15+
public override string ModuleVersion => "1.0.7";
1616
public override string ModuleAuthor => "HerrMagic";
1717
public override string ModuleDescription => "Create your own commands per config";
1818

@@ -46,9 +46,13 @@ public override void Load(bool hotReload)
4646

4747
RegisterListeners();
4848

49-
if (comms != null)
49+
50+
if (comms != null)
51+
{
52+
comms = CheckForDuplicateCommands(comms);
5053
foreach (var com in comms)
5154
AddCommands(com);
55+
}
5256

5357
if (hotReload)
5458
InitializeLists();

0 commit comments

Comments
 (0)