Skip to content

Commit

Permalink
POURQUOI JE PEUX PAS ACCEDER AUX PARENTS :trollface:
Browse files Browse the repository at this point in the history
  • Loading branch information
Niilyx committed Sep 5, 2023
1 parent 040037a commit 58f7073
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 58f7073

Please sign in to comment.