Skip to content
Snippets Groups Projects
Commit 668d6d87 authored by Trojaner25's avatar Trojaner25
Browse files

Set working directory

parent 379d8354
No related branches found
No related tags found
No related merge requests found
Pipeline #89 passed
......@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.IO;
using System.Reflection;
using Rocket.Core;
using SDG.Unturned;
namespace Rocket.Unturned
{
......@@ -32,6 +33,11 @@ namespace Rocket.Unturned
return null;
};
string rocketDirectory = $"Servers/{Dedicator.serverID}/Rocket/";
if (!Directory.Exists(rocketDirectory)) Directory.CreateDirectory(rocketDirectory);
Directory.SetCurrentDirectory(rocketDirectory);
R.Bootstrap<U>();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment