Skip to content

Commit

Permalink
Remove end of support spam
Browse files Browse the repository at this point in the history
  • Loading branch information
xNexusACS authored Nov 20, 2024
1 parent 3d7fb2b commit 515d536
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions Exiled.Events/Handlers/Internal/Round.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ namespace Exiled.Events.Handlers.Internal
/// </summary>
internal static class Round
{
#pragma warning disable SA1600
#pragma warning disable SA1401
internal static CoroutineHandle EndOfSupportHandle;
#pragma warning restore SA1401
#pragma warning restore SA1600

/// <inheritdoc cref="Handlers.Player.OnUsedItem" />
public static void OnServerOnUsingCompleted(ReferenceHub hub, UsableItem usable) => Handlers.Player.OnUsedItem(new (hub, usable));

Expand All @@ -47,8 +41,6 @@ public static void OnWaitingForPlayers()
{
MultiAdminFeatures.CallEvent(MultiAdminFeatures.EventType.WAITING_FOR_PLAYERS);

EndOfSupportHandle = Timing.RunCoroutine(EndOfSupportNotification());

if (Events.Instance.Config.ShouldReloadConfigsAtRoundRestart)
ConfigManager.Reload();

Expand Down Expand Up @@ -110,20 +102,5 @@ public static void OnVerified(VerifiedEventArgs ev)
ev.Player.SendFakeSyncVar(room.RoomLightControllerNetIdentity, typeof(RoomLightController), nameof(RoomLightController.NetworkLightsEnabled), false);
}
}

private static IEnumerator<float> EndOfSupportNotification()
{
if (LoaderPlugin.Config.Reboot)
yield break;

for (; ;)
{
ServerConsole.AddLog("Exiled support has ended. For updates and new releases, join us at https://exiled.to/discord!", ConsoleColor.DarkRed);
ServerConsole.AddLog("Exiled Reboot will not load plugins until you acknowledge this message by setting the 'Reboot' Loader config to true.", ConsoleColor.DarkRed);
ServerConsole.AddLog("Run the commands 'exiled reboot', 'exiled ack' or 'exiled exboot' to temporary suppress the logs.", ConsoleColor.DarkRed);

yield return Timing.WaitForSeconds(20f);
}
}
}
}

0 comments on commit 515d536

Please sign in to comment.