From 72e67e533f616f8bfbb3d3da422ff916c8eed3a6 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Thu, 7 May 2020 13:02:32 +0100 Subject: [PATCH] Corrects the number of args needed for ActiveGroup command and adds missing return true; --- Core/Commands/Group/GroupActiveGroup.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/Commands/Group/GroupActiveGroup.cs b/Core/Commands/Group/GroupActiveGroup.cs index 71b0f73..e87b848 100644 --- a/Core/Commands/Group/GroupActiveGroup.cs +++ b/Core/Commands/Group/GroupActiveGroup.cs @@ -5,10 +5,10 @@ using System.Text; namespace BSB.Commands.Group { - class GroupActiveGroup : CoreCommand_2arg + class GroupActiveGroup : CoreCommand_1arg { public override string[] ArgTypes { get { return new[] { "Group"}; } } - public override string[] ArgHints { get { return new[] { "Group UUID or name" }; } } + public override string[] ArgHints { get { return new[] { "Group UUID or Name" }; } } public override string Helpfile { get { return "Sets the selected group to the active group"; } } public override bool CallFunction(string[] args) { @@ -33,6 +33,7 @@ namespace BSB.Commands.Group if (group_uuid != UUID.Zero) { bot.GetClient.Groups.ActivateGroup(group_uuid); + return true; } } return false;