From f20ae79f9cd097ee22e9d38d9c57a0a45aaa647e Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 3 Jan 2022 14:47:28 +1100 Subject: [PATCH] CLI: Warn when running with name verification disabled on startup --- CLI/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CLI/Program.cs b/CLI/Program.cs index 55881719a..9052ba734 100644 --- a/CLI/Program.cs +++ b/CLI/Program.cs @@ -79,6 +79,8 @@ namespace MCGalaxy.Cli { Server.Start(); Console.Title = Server.Config.Name + " - " + Server.SoftwareNameVersioned; Console.CancelKeyPress += OnCancelKeyPress; + + CheckNameVerification(); ConsoleLoop(); } catch (Exception e) { Logger.LogError(e); @@ -159,6 +161,11 @@ namespace MCGalaxy.Cli { } + static void CheckNameVerification() { + if (Server.Config.VerifyNames) return; + Write("&eWARNING: Name verification is disabled! This means players can login as anyone, including YOU"); + } + static void LogNewerVersionDetected(object sender, EventArgs e) { Write("&cMCGalaxy update available! Update by replacing with the files from " + Updater.UploadsURL); }