diff --git a/Content.Client/Commands/DebugCommands.cs b/Content.Client/Commands/DebugCommands.cs index 15879deece..e402664a97 100644 --- a/Content.Client/Commands/DebugCommands.cs +++ b/Content.Client/Commands/DebugCommands.cs @@ -1,3 +1,5 @@ +// ReSharper disable once RedundantUsingDirective +// Used to warn the player in big red letters in debug mode using System; using Content.Client.GameObjects.Components; using Content.Client.GameObjects.EntitySystems; @@ -8,6 +10,7 @@ using Robust.Shared.Console; using Robust.Shared.GameObjects.Systems; using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.IoC; +using Robust.Shared.Maths; namespace Content.Client.Commands { @@ -93,6 +96,10 @@ namespace Content.Client.Commands return; } +#if DEBUG + shell.WriteLine("WARNING: The client is using a debug build. You are risking losing your changes.", Color.Red); +#endif + shell.ConsoleHost.RegisteredCommands["togglelight"].Execute(shell, string.Empty, Array.Empty()); shell.ConsoleHost.RegisteredCommands["showsubfloorforever"].Execute(shell, string.Empty, Array.Empty()); diff --git a/Content.Server/Commands/GameTicking/MappingCommand.cs b/Content.Server/Commands/GameTicking/MappingCommand.cs index 332e5d57c5..9025382be9 100644 --- a/Content.Server/Commands/GameTicking/MappingCommand.cs +++ b/Content.Server/Commands/GameTicking/MappingCommand.cs @@ -1,3 +1,5 @@ +// ReSharper disable once RedundantUsingDirective +// Used to warn the player in big red letters in debug mode using System.Linq; using Content.Server.Administration; using Content.Shared.Administration; @@ -6,6 +8,7 @@ using Robust.Server.Interfaces.Timing; using Robust.Shared.Console; using Robust.Shared.Interfaces.Map; using Robust.Shared.IoC; +using Robust.Shared.Maths; using Robust.Shared.Utility; namespace Content.Server.Commands.GameTicking @@ -26,6 +29,10 @@ namespace Content.Server.Commands.GameTicking return; } +#if DEBUG + shell.WriteLine("WARNING: The server is using a debug build. You are risking losing your changes.", Color.Red); +#endif + var mapManager = IoCManager.Resolve(); int mapId; string mapName;