Using /deletelvl should delete the [map].lvl.backup file in the levels folder

This commit is contained in:
UnknownShadow200 2017-09-21 15:34:46 +10:00
parent f010bd3880
commit 50599b4bec
2 changed files with 4 additions and 3 deletions

View File

@ -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");
}
}
}

View File

@ -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");