diff --git a/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java b/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java index 85a537f8..64e8705b 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java +++ b/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java @@ -201,8 +201,8 @@ public class ServerStarter { private void tempWorld(String template) { worldDir = TEMP_WORLD_PATH; - worldSetup = () -> copyWorld(node, template, worldDir + worldName); - worldCleanup = () -> SubserverSystem.deleteFolder(node, worldDir + worldName); + worldSetup = () -> copyWorld(node, template, new File(worldDir, worldName).getPath()); + worldCleanup = () -> SubserverSystem.deleteFolder(node, new File(worldDir, worldName).getPath()); } private void buildWithTemp(Player owner) { @@ -396,4 +396,4 @@ public class ServerStarter { } } -} \ No newline at end of file +}