Skip to content

Commit

Permalink
Fix TipsSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed May 30, 2024
1 parent abeea11 commit 1b705c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.Server/Tips/TipsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public sealed class TipsSystem : EntitySystem
[Dependency] private readonly GameTicker _ticker = default!;
[Dependency] private readonly IConsoleHost _conHost = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly IWatchdogApi _watchdog = default!;
[Dependency] private readonly IWatchdogApi _watchdog = default!; // Sunrise-Edit

private bool _tipsEnabled;
private float _tipTimeOutOfRound;
Expand All @@ -55,14 +55,16 @@ public override void Initialize()
_conHost.RegisterCommand("tippy", Loc.GetString("cmd-tippy-desc"), Loc.GetString("cmd-tippy-help"), SendTippy, SendTippyHelper);
_conHost.RegisterCommand("tip", Loc.GetString("cmd-tip-desc"), "tip", SendTip);

_watchdog.UpdateReceived += WatchdogOnUpdateReceived;
_watchdog.UpdateReceived += WatchdogOnUpdateReceived; // Sunrise-Edit
}

// Sunrise-Start
private void WatchdogOnUpdateReceived()
{
var message = Loc.GetString("server-updates-received");
SendTippyForAll(message, 5f);
}
// Sunrise-End

private CompletionResult SendTippyHelper(IConsoleShell shell, string[] args)
{
Expand Down

0 comments on commit 1b705c9

Please sign in to comment.