Skip to content

Commit

Permalink
Force white
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Oct 31, 2024
1 parent d006aee commit 7ed5bf3
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 7ed5bf3

Please sign in to comment.