import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;
public final class PlayerIO {
private final static Path SPONGE_PLAYER_DATA_FOLDER = Paths.get("data", "sponge");
<BUG>private final static Path PLAYER_DATA_FOLDER = Paths.get("playerdata");
public static void load(Path dataFolder, LanternPlayer player) throws IOException {</BUG>
final String fileName = player.getUniqueId().toString() + ".dat";
Path dataFile = dataFolder.resolve(PLAYER_DATA_FOLDER).resolve(fileName);
if (Files.exists(dataFile)) {

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;
public final class PlayerIO {
private final static Path SPONGE_PLAYER_DATA_FOLDER = Paths.get("data", "sponge");
private final static Path PLAYER_DATA_FOLDER = Paths.get("playerdata");
private final static Path STATISTICS_FOLDER = Paths.get("stats");
public static void load(Path dataFolder, LanternPlayer player) throws IOException {
final String fileName = player.getUniqueId().toString() + ".dat";
Path dataFile = dataFolder.resolve(PLAYER_DATA_FOLDER).resolve(fileName);
if (Files.exists(dataFile)) {
