From 58f707357ae71173311522c3530286db4dce0357 Mon Sep 17 00:00:00 2001 From: Niilyx _ Date: Wed, 6 Sep 2023 01:18:23 +0200 Subject: [PATCH] POURQUOI JE PEUX PAS ACCEDER AUX PARENTS :trollface: --- .../main/java/fr/efreicraft/ludos/core/maps/MapManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/fr/efreicraft/ludos/core/maps/MapManager.java b/core/src/main/java/fr/efreicraft/ludos/core/maps/MapManager.java index 5ecb0fa..15aa10c 100644 --- a/core/src/main/java/fr/efreicraft/ludos/core/maps/MapManager.java +++ b/core/src/main/java/fr/efreicraft/ludos/core/maps/MapManager.java @@ -279,8 +279,8 @@ private ParseMapArgs loadFolderMap(String mapName) throws MapLoadingException { "game_maps/" + Core.get().getGameManager().getCurrentGame().getMetadata().name() + "/" + mapName); if (!sourceFolder.isDirectory()) throw new MapLoadingException(mapName + " n'est pas un dossier ou n'existe pas."); - Core.get().getLogger().log(Level.INFO, "Plugins folder absolute: {0}\nParent: {1}", new Object[]{Bukkit.getPluginsFolder().getAbsolutePath(), Bukkit.getPluginsFolder().getParent()}); - File destination = Bukkit.getPluginsFolder().getParentFile(); + Core.get().getLogger().log(Level.INFO, "Path is {0}", Bukkit.getPluginsFolder().getAbsolutePath().substring(0, Bukkit.getPluginsFolder().getAbsolutePath().lastIndexOf(File.separatorChar))); + File destination = new File(Bukkit.getPluginsFolder().getAbsolutePath().substring(0, Bukkit.getPluginsFolder().getAbsolutePath().lastIndexOf(File.separatorChar))); File newFolder; try {