mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Reset Server Button
- added new button to reset your server.
This commit is contained in:
parent
e2f92bf7a9
commit
9c5b096429
19 changed files with 308 additions and 136 deletions
|
|
@ -2011,9 +2011,9 @@ namespace ServerManagerTool.Lib
|
|||
|
||||
// backup the world save file
|
||||
var key = string.Empty;
|
||||
var files = new Dictionary<string, List<string>>
|
||||
var files = new Dictionary<string, List<(string, string)>>
|
||||
{
|
||||
{ key, new List<string> { worldFile } }
|
||||
{ key, new List<(string, string)> { (worldFile, worldFileName) } }
|
||||
};
|
||||
|
||||
if (Config.Default.AutoBackup_IncludeSaveGamesFolder)
|
||||
|
|
@ -2030,9 +2030,9 @@ namespace ServerManagerTool.Lib
|
|||
{
|
||||
key = file.DirectoryName.Replace(saveGamesFolder, Config.Default.SaveGamesRelativePath);
|
||||
if (files.ContainsKey(key))
|
||||
files[key].Add(file.FullName);
|
||||
files[key].Add((file.FullName, file.Name));
|
||||
else
|
||||
files.Add(key, new List<string> { file.FullName });
|
||||
files.Add(key, new List<(string, string)> { (file.FullName, file.Name) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue