From 4102743b657f5a02f69d857224a96664a5f51753 Mon Sep 17 00:00:00 2001 From: GeekGarage Date: Sun, 15 Oct 2023 17:03:10 +0200 Subject: [PATCH] Added support wipe console command Added wipePlayerProgress as console command to support scheduled commands. --- Quests.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Quests.cs b/Quests.cs index d66cf59..7f47b20 100644 --- a/Quests.cs +++ b/Quests.cs @@ -3067,6 +3067,14 @@ void cmdQuestNPC(BasePlayer player, string command, string[] args) else SendMSG(player, LA("noNPC", player.UserIDString)); } + [ConsoleCommand("wipePlayerProgress")] + void ccmdwipePlayerProgress(ConsoleSystem.Arg arg) + { + if (arg.Connection != null) return; + playerData.PlayerProgress = null; + Player_Data.WriteObject(Player_Data); + LoadData(); + } #endregion #region Data Management @@ -3437,4 +3445,4 @@ private bool API_GetNotChatOutput(BasePlayer player) #endregion } -} \ No newline at end of file +}