Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions EXILED/Exiled.Loader/Features/LoaderMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static class LoaderMessages
▀ ";

/// <summary>
/// Gets the easter egg loader message.
/// Gets the Easter egg loader message.
/// </summary>
public static string EasterEgg => @"
▄████████ ▄████████ ▀████ ▐████▀ ▄█ ▄█ ▄████████ ████████▄
Expand All @@ -43,7 +43,7 @@ public static class LoaderMessages
";

/// <summary>
/// Gets the christmas loader message.
/// Gets the Christmas loader message.
/// </summary>
public static string Christmas => @"
__
Expand All @@ -60,7 +60,7 @@ public static class LoaderMessages
|____)_)";

/// <summary>
/// Gets the halloween loader message.
/// Gets the Halloween loader message.
/// </summary>
public static string Halloween => @"
@@@@@@@@ @@@ @@@ @@@ @@@ @@@@@@@@ @@@@@@@
Expand All @@ -81,7 +81,10 @@ @@@@@@@@ @@@ @@@ @@@ @@@ @@@@@@@@ @@@@@@@@
/// <returns>The correspondent loader message.</returns>
public static string GetMessage()
{
if (Loader.Version.ToString().Contains("6.9") || Loader.Random.NextDouble() <= 0.069)
if (Environment.GetCommandLineArgs().Contains("--defaultloadmessage"))
return Default;

if (!Environment.GetCommandLineArgs().Contains("--noeasteregg") && (Loader.Version.ToString().Contains("6.9") || Loader.Random.NextDouble() <= 0.069))
return EasterEgg;

return DateTime.Today.Month switch
Expand Down