-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Modules.Admin; | ||
using CounterStrikeSharp.API.Modules.Commands; | ||
using Jailbreak.Public.Behaviors; | ||
|
||
namespace Jailbreak.Debug; | ||
|
||
public class DebugCommand : IPluginBehavior | ||
{ | ||
[RequiresPermissions("@css/root")] | ||
public void Command_Debug(CCSPlayerController? executor, CommandInfo info) | ||
{ | ||
if (executor == null) | ||
{ | ||
return; | ||
} | ||
|
||
if (info.ArgCount == 1) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Jailbreak.Public.Extensions; | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Jailbreak.Debug; | ||
|
||
public static class DebugServiceExtension | ||
{ | ||
public static void AddDebugService(this IServiceCollection services) | ||
{ | ||
services.AddPluginBehavior<DebugCommand>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\public\Jailbreak.Public\Jailbreak.Public.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using CounterStrikeSharp.API.Core; | ||
using CounterStrikeSharp.API.Modules.Commands; | ||
|
||
namespace Jailbreak.Debug.Subcommands; | ||
|
||
public class MarkRebel | ||
{ | ||
public void Command_MarkRebel(CCSPlayerController? executor, CommandInfo info) | ||
{ | ||
if (executor == null) | ||
{ | ||
return; | ||
} | ||
|
||
if (info.ArgCount == 1) | ||
{ | ||
// asdf | ||
} | ||
} | ||
} |