Skip to content

Commit

Permalink
Force white (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS authored Oct 31, 2024
2 parents 28b2521 + 7ed5bf3 commit 03e8464
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/Jailbreak.RTD/RTDRewarder.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using CounterStrikeSharp.API;
using System.Drawing;
using CounterStrikeSharp.API;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Core.Attributes.Registration;
using Jailbreak.Formatting.Views.Logging;
using Jailbreak.Public.Behaviors;
using Jailbreak.Public.Extensions;
using Jailbreak.Public.Mod.RTD;
using Jailbreak.Public.Utils;

Expand Down Expand Up @@ -36,6 +38,8 @@ public HookResult OnSpawn(EventPlayerSpawn @event, GameEventInfo info) {
if (reward == null) return HookResult.Continue;
if (!reward.CanGrantReward(player)) return HookResult.Continue;

player.SetColor(Color.White);

Server.RunOnTick(Server.TickCount + 2, () => {
if (!player.IsValid) return;
if (reward.Name != "Nothing")
Expand Down

0 comments on commit 03e8464

Please sign in to comment.