Skip to content

Commit

Permalink
Disable gang command in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Sep 6, 2024
1 parent ca016c9 commit b47d04c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Commands/GangCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Commands.gang;
using CounterStrikeSharp.API.Modules.Utils;
using GangsAPI.Data;
using GangsAPI.Data.Command;
using GangsAPI.Services;
Expand Down Expand Up @@ -31,6 +32,11 @@ public async Task<CommandResult> Execute(PlayerWrapper? executor,
throw new InvalidOperationException(
$"Attempted to execute GangCommand with invalid name: {info[0]}");

if (executor?.Player != null) {
info.ReplySync(
$" {ChatColors.DarkRed}GANGS {ChatColors.White}> {ChatColors.Grey}SoonTM!");
return CommandResult.SUCCESS;
}

if (info.ArgCount == 1) return CommandResult.INVALID_ARGS;

Expand Down
1 change: 1 addition & 0 deletions GangsTest/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using GangsAPI.Services;
using GangsAPI.Services.Commands;
using MartinCostello.Logging.XUnit;
using Microsoft.Extensions.DependencyInjection;
using Mock;

Expand Down

0 comments on commit b47d04c

Please sign in to comment.