diff --git a/mod/Jailbreak.Rebel/RebelListener.cs b/mod/Jailbreak.Rebel/RebelListener.cs index 967b06be..4073c020 100644 --- a/mod/Jailbreak.Rebel/RebelListener.cs +++ b/mod/Jailbreak.Rebel/RebelListener.cs @@ -20,7 +20,7 @@ public RebelListener(IRebelService rebelService, ILastRequestManager lastRequest } [GameEventHandler] - private HookResult OnPlayerHurt(EventPlayerHurt @event, GameEventInfo info) + public HookResult OnPlayerHurt(EventPlayerHurt @event, GameEventInfo info) { var player = @event.Userid; if (!player.IsReal()) diff --git a/mod/Jailbreak.Warden/Global/WardenBehavior.cs b/mod/Jailbreak.Warden/Global/WardenBehavior.cs index f063cec4..93848892 100644 --- a/mod/Jailbreak.Warden/Global/WardenBehavior.cs +++ b/mod/Jailbreak.Warden/Global/WardenBehavior.cs @@ -65,6 +65,8 @@ public bool TrySetWarden(CCSPlayerController controller) _hasWarden = true; _warden = controller; + + _warden.PlayerName = "[WARDEN] " + _warden.PlayerName; if (_warden.Pawn.Value != null) { @@ -92,6 +94,7 @@ public bool TryRemoveWarden() if (_warden != null && _warden.Pawn.Value != null) { + _warden.PlayerName = _warden.PlayerName.Replace("[WARDEN] ", ""); _warden.Pawn.Value.RenderMode = RenderMode_t.kRenderTransColor; _warden.Pawn.Value.Render = Color.FromArgb(254, 255, 255, 255); Utilities.SetStateChanged(_warden.Pawn.Value, "CBaseModelEntity", "m_clrRender");