diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/MessageController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/MessageController.cs index 745ec299..914d6a64 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/MessageController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/MessageController.cs @@ -42,6 +42,11 @@ along with this program. If not, see ."; User? user = await this.database.UserFromGameRequest(this.Request); if (user == null) return this.StatusCode(403, ""); + string eulaText = ServerConfiguration.Instance.EulaText; + + eulaText = eulaText.Replace("%licence", $"{license}\n"); + eulaText = eulaText.Replace("\\n", "\n"); // just in case, may be redundant + return this.Ok($"{license}\n{ServerConfiguration.Instance.EulaText}"); }