Cleanup LiveAtlas plugin directory

This commit is contained in:
SNDST00M: M.U.N.I.N 2021-10-10 11:19:28 +01:00
parent 51ed4bfbd5
commit 28aa8c16b8
No known key found for this signature in database
GPG Key ID: 0C7CE6F01FC333C5

View File

@ -85,6 +85,7 @@ public class LiveAtlasMain extends JavaPlugin {
copyJarFile(this.getFile().getAbsoluteFile().toString()); copyJarFile(this.getFile().getAbsoluteFile().toString());
File dynmapWebFolderPath = Paths.get(dynmap.getDataFolder().toURI()).resolve("web").toFile(); File dynmapWebFolderPath = Paths.get(dynmap.getDataFolder().toURI()).resolve("web").toFile();
copyDirectory(liveAtlasFolderPath, dynmapWebFolderPath); copyDirectory(liveAtlasFolderPath, dynmapWebFolderPath);
deleteDir(liveAtlasFolderPath);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("LiveAtlas v" + version + " installation failed", e); throw new RuntimeException("LiveAtlas v" + version + " installation failed", e);
} }