-
-
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
2 changed files
with
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System.Reflection; | ||
using CounterStrikeSharp.API.Core; | ||
using Jailbreak.Public.Behaviors; | ||
using Jailbreak.Public.Mod.Warden; | ||
|
||
namespace Jailbreak.Warden.Commands; | ||
|
||
public class SpecialTreatmentBehavior : IPluginBehavior, ISpecialTreatmentService | ||
{ | ||
private ISet<CCSPlayerController> _sts = new HashSet<CCSPlayerController>(); | ||
|
||
public void Start(BasePlugin parent) | ||
{ | ||
parent.RegisterEventHandler<EventPlayerDisconnect>(OnPlayerDisconnect); | ||
Check failure on line 14 in mod/Jailbreak.Warden/Commands/SpecialTreatmentBehavior.cs GitHub Actions / build
Check failure on line 14 in mod/Jailbreak.Warden/Commands/SpecialTreatmentBehavior.cs GitHub Actions / build
|
||
} | ||
|
||
HookResult OnPlayerDisconnect(CCSPlayerController player, GameEventInfo info) | ||
{ | ||
if(!player.IsValid) | ||
return HookResult.Continue; | ||
|
||
return HookResult.Continue; | ||
} | ||
|
||
public bool IsSpecialTreatment(CCSPlayerController? player) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void SetSpecialTreatment(CCSPlayerController? player, bool value) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
public/Jailbreak.Public/Mod/Warden/ISpecialTreatmentService.cs
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,9 @@ | ||
using CounterStrikeSharp.API.Core; | ||
|
||
namespace Jailbreak.Public.Mod.Warden; | ||
|
||
public interface ISpecialTreatmentService | ||
{ | ||
bool IsSpecialTreatment(CCSPlayerController? player); | ||
void SetSpecialTreatment(CCSPlayerController? player, bool value); | ||
} |