Merge pull request #618 from DrakiaXYZ/fix-commandocommands

Fix commando inheriting all chat commands
This commit is contained in:
Chomp
2025-10-14 08:16:35 +00:00
committed by GitHub
3 changed files with 9 additions and 2 deletions
@@ -0,0 +1,5 @@
using SPTarkov.Server.Core.Helpers.Dialog.Commando;
namespace SPTarkov.Server.Core.Helpers.Dialogue.Commando;
public interface ICommandoCommand : IChatCommand { }
@@ -1,5 +1,6 @@
using SPTarkov.DI.Annotations;
using SPTarkov.Server.Core.Helpers.Dialog.Commando.SptCommands;
using SPTarkov.Server.Core.Helpers.Dialogue.Commando;
using SPTarkov.Server.Core.Models.Common;
using SPTarkov.Server.Core.Models.Eft.Dialog;
using SPTarkov.Server.Core.Models.Eft.Profile;
@@ -10,7 +11,7 @@ using SPTarkov.Server.Core.Services;
namespace SPTarkov.Server.Core.Helpers.Dialog.Commando;
[Injectable]
public class SptCommandoCommands : IChatCommand
public class SptCommandoCommands : ICommandoCommand
{
protected readonly ServerLocalisationService _serverLocalisationService;
protected readonly IDictionary<string, ISptCommand> _sptCommands;
@@ -1,5 +1,6 @@
using SPTarkov.DI.Annotations;
using SPTarkov.Server.Core.Helpers.Dialog.Commando;
using SPTarkov.Server.Core.Helpers.Dialogue.Commando;
using SPTarkov.Server.Core.Models.Eft.Profile;
using SPTarkov.Server.Core.Models.Enums;
using SPTarkov.Server.Core.Models.Spt.Config;
@@ -15,7 +16,7 @@ public class CommandoDialogChatBot(
MailSendService mailSendService,
ServerLocalisationService localisationService,
ConfigServer configServer,
IEnumerable<IChatCommand> chatCommands
IEnumerable<ICommandoCommand> chatCommands
) : AbstractDialogChatBot(logger, mailSendService, localisationService, chatCommands)
{
protected readonly CoreConfig CoreConfig = configServer.GetConfig<CoreConfig>();