diff --git a/mod/Gangs.BombIconPerk/BombIconExtension.cs b/mod/Gangs.BombIconPerk/BombIconBootstrap.cs similarity index 100% rename from mod/Gangs.BombIconPerk/BombIconExtension.cs rename to mod/Gangs.BombIconPerk/BombIconBootstrap.cs diff --git a/mod/Gangs.BombIconPerk/BombIconCommand.cs b/mod/Gangs.BombIconPerk/BombIconCommand.cs index 333b611d..7caef2d0 100644 --- a/mod/Gangs.BombIconPerk/BombIconCommand.cs +++ b/mod/Gangs.BombIconPerk/BombIconCommand.cs @@ -45,7 +45,9 @@ public class BombIconCommand(IServiceProvider provider) : ICommand { public void Start() { Server.PrintToConsole("Registering Bomb Icon Command"); - provider.GetRequiredService().RegisterCommand(this); + Server.PrintToConsole("Registered: " + provider + .GetRequiredService() + .RegisterCommand(this)); } public async Task Execute(PlayerWrapper? executor, diff --git a/mod/Gangs.Boostrap/GangsServiceExtension.cs b/mod/Gangs.Boostrap/GangsServiceExtension.cs index 8768dd86..fd2782a1 100644 --- a/mod/Gangs.Boostrap/GangsServiceExtension.cs +++ b/mod/Gangs.Boostrap/GangsServiceExtension.cs @@ -17,10 +17,11 @@ public static void AddGangs(this IServiceCollection services) { public class GangsInit : IPluginBehavior { public void Start(BasePlugin basePlugin) { + basePlugin.Logger.LogInformation("Timer fired"); 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); + "Found services: {services} (is null: {null}) ({Gangs}) (null: {isNull})", + services, services == null, API.Gangs, API.Gangs == null); if (services == null) return; _ = new BombIconBootstrap(services);