Skip to content

Commit

Permalink
Disable delay
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Sep 17, 2024
1 parent 619546b commit e4436ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
File renamed without changes.
4 changes: 3 additions & 1 deletion mod/Gangs.BombIconPerk/BombIconCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public class BombIconCommand(IServiceProvider provider) : ICommand {

public void Start() {
Server.PrintToConsole("Registering Bomb Icon Command");
provider.GetRequiredService<ICommandManager>().RegisterCommand(this);
Server.PrintToConsole("Registered: " + provider
.GetRequiredService<ICommandManager>()
.RegisterCommand(this));
}

public async Task<CommandResult> Execute(PlayerWrapper? executor,
Expand Down
5 changes: 3 additions & 2 deletions mod/Gangs.Boostrap/GangsServiceExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4436ec

Please sign in to comment.