From d49f25fade692d2b5f017a448c6453731bfe55b2 Mon Sep 17 00:00:00 2001 From: MSWS Date: Mon, 16 Sep 2024 23:42:53 -0700 Subject: [PATCH] Update DLL --- mod/Gangs.BombIconPerk/BombIconCommand.cs | 5 ++++- mod/Gangs.Boostrap/GangsServiceExtension.cs | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mod/Gangs.BombIconPerk/BombIconCommand.cs b/mod/Gangs.BombIconPerk/BombIconCommand.cs index b90dd35..333b611 100644 --- a/mod/Gangs.BombIconPerk/BombIconCommand.cs +++ b/mod/Gangs.BombIconPerk/BombIconCommand.cs @@ -1,4 +1,5 @@ -using GangsAPI; +using CounterStrikeSharp.API; +using GangsAPI; using GangsAPI.Data; using GangsAPI.Data.Command; using GangsAPI.Exceptions; @@ -43,11 +44,13 @@ public class BombIconCommand(IServiceProvider provider) : ICommand { public string[] Usage => [""]; public void Start() { + Server.PrintToConsole("Registering Bomb Icon Command"); provider.GetRequiredService().RegisterCommand(this); } public async Task Execute(PlayerWrapper? executor, CommandInfoWrapper info) { + info.ReplySync("Test"); if (executor == null) return CommandResult.PLAYER_ONLY; var player = await players.GetPlayer(executor.Steam) ?? throw new PlayerNotFoundException(executor.Steam); diff --git a/mod/Gangs.Boostrap/GangsServiceExtension.cs b/mod/Gangs.Boostrap/GangsServiceExtension.cs index b1333ae..8768dd8 100644 --- a/mod/Gangs.Boostrap/GangsServiceExtension.cs +++ b/mod/Gangs.Boostrap/GangsServiceExtension.cs @@ -1,9 +1,11 @@ -using CounterStrikeSharp.API.Core; +using CounterStrikeSharp.API; +using CounterStrikeSharp.API.Core; using Gangs.BombIconPerk; using Jailbreak.Public; using Jailbreak.Public.Behaviors; using Jailbreak.Public.Extensions; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; namespace Gangs.Boostrap; @@ -16,6 +18,9 @@ public static void AddGangs(this IServiceCollection services) { public class GangsInit : IPluginBehavior { public void Start(BasePlugin basePlugin) { var services = API.Gangs?.Services; + basePlugin.Logger.LogInformation( + "Found services: {services} (is null: {null}) ({Gangs}) (null: {isNull})", services, + services == null, API.Gangs, API.Gangs == null); if (services == null) return; _ = new BombIconBootstrap(services);