use right backups path

This commit is contained in:
UnknownShadow200 2017-02-12 09:44:58 +11:00
parent 226fbc260a
commit 2c9d0c0311
3 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ namespace MCGalaxy.Commands {
Server.restarttime = DateTime.Now;
Server.level = "main";
Server.backupLocation = Path.Combine(Utils.FolderPath, "/levels/backups");
Server.backupLocation = Path.Combine(Utils.FolderPath, "levels/backups");
Server.blockInterval = 60;
Server.unsafe_plugin = true;

View File

@ -49,7 +49,7 @@ namespace MCGalaxy {
MySQLBackend.Instance : SQLiteBackend.Instance;
if (!Directory.Exists(Server.backupLocation))
Server.backupLocation = Path.Combine(Utils.FolderPath, "/levels/backups");
Server.backupLocation = Path.Combine(Utils.FolderPath, "levels/backups");
Server.updateTimer.Interval = Server.PositionInterval;
Save(givenPath);
}

View File

@ -291,7 +291,7 @@ namespace MCGalaxy {
public static int backupInterval = 300;
public static int blockInterval = 60;
[ConfigString("backup-location", "Backup", null, "")]
public static string backupLocation = Path.Combine(Utils.FolderPath, "/levels/backups");
public static string backupLocation = Path.Combine(Utils.FolderPath, "levels/backups");
[ConfigStringList("disabledstandardtokens", "Other", null)]
internal static List<string> disabledChatTokens = new List<string>();