diff --git a/mod/Gangs.BombIconPerk/BombIconCommand.cs b/mod/Gangs.BombIconPerk/BombIconCommand.cs index b90dd359..333b611d 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 b1333ae6..8768dd86 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);