From 10a77e6137b08938f469f29aba0c46b0339f04ad Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 6 Dec 2017 13:31:08 +0200 Subject: [PATCH] Cleanbuild console command removes the list of banned players (won't be included in builds to prevent the file from being cleared when updating the game) --- Barotrauma/BarotraumaClient/Source/DebugConsole.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs index 0283ec3d6..cee0e43da 100644 --- a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs @@ -438,6 +438,11 @@ namespace Barotrauma NewMessage("Deleted filelist", Color.Green); } + if (System.IO.File.Exists("Data/bannedplayers.txt")) + { + System.IO.File.Delete("Data/bannedplayers.txt"); + NewMessage("Deleted bannedplayers.txt", Color.Green); + } if (System.IO.File.Exists("Submarines/TutorialSub.sub")) {