diff --git a/RandomTeleport v1.0/src/de/themoep/bukkit/plugin/RandomTeleport/RandomTeleport.java b/RandomTeleport v1.0/src/de/themoep/bukkit/plugin/RandomTeleport/RandomTeleport.java index 2da0a30..0e71c37 100644 --- a/RandomTeleport v1.0/src/de/themoep/bukkit/plugin/RandomTeleport/RandomTeleport.java +++ b/RandomTeleport v1.0/src/de/themoep/bukkit/plugin/RandomTeleport/RandomTeleport.java @@ -554,7 +554,7 @@ public class RandomTeleport extends JavaPlugin implements CommandExecutor { public void writeMap(Object object, String outputFile) { try { - File file = new File(getDataFolder().getPath() + "/" + outputFile); + File file = new File(getDataFolder(), outputFile); if (!file.isFile()) { if(!file.createNewFile()){ throw new IOException("Error creating new file: " + file.getPath()); @@ -580,7 +580,7 @@ public class RandomTeleport extends JavaPlugin implements CommandExecutor { @SuppressWarnings("unchecked") public Object readMap(String inputFile) { HashMap map = new HashMap(); - File file = new File(getDataFolder().getPath() + "/" + inputFile); + File file = new File(getDataFolder(), inputFile); if (!file.isFile()) { getLogger().log(Level.INFO, "No file found in " + file.getPath()); try {