From 50599b4becebe071248ab3ce062e8cbbbf147ad8 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 21 Sep 2017 15:34:46 +1000 Subject: [PATCH] Using /deletelvl should delete the [map].lvl.backup file in the levels folder --- MCGalaxy/Commands/Scripting/CmdScripting.cs | 6 +++--- MCGalaxy/Levels/LevelActions.cs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MCGalaxy/Commands/Scripting/CmdScripting.cs b/MCGalaxy/Commands/Scripting/CmdScripting.cs index 5340a1a18..bc4cbfb33 100644 --- a/MCGalaxy/Commands/Scripting/CmdScripting.cs +++ b/MCGalaxy/Commands/Scripting/CmdScripting.cs @@ -113,11 +113,11 @@ namespace MCGalaxy public override void Help(Player p) { Player.Message(p, "%T/Scripting pcreate [name]"); - Player.Message(p, "%HCreate a example .cs file!"); + Player.Message(p, "%HCreate a example .cs plugin file"); Player.Message(p, "%T/Scripting pload [filename]"); - Player.Message(p, "%HLoad a plugin from your plugins folder."); + Player.Message(p, "%HLoad a plugin from your plugins folder"); Player.Message(p, "%T/Scripting punload [name]"); - Player.Message(p, "%HUnloads a currently loaded plugin."); + Player.Message(p, "%HUnloads a currently loaded plugin"); } } } diff --git a/MCGalaxy/Levels/LevelActions.cs b/MCGalaxy/Levels/LevelActions.cs index b2c1bab43..aaa336b2a 100644 --- a/MCGalaxy/Levels/LevelActions.cs +++ b/MCGalaxy/Levels/LevelActions.cs @@ -129,6 +129,7 @@ namespace MCGalaxy { File.Move(LevelInfo.MapPath(name), LevelInfo.DeletedPath(name)); } + DeleteIfExists(LevelInfo.MapPath(name) + ".backup"); DeleteIfExists("levels/level properties/" + name); DeleteIfExists("levels/level properties/" + name + ".properties"); DeleteIfExists("blockdefs/lvl_" + name + ".json");