Skip to content

Commit

Permalink
For now still use the current approach to QPlayerPreferences construc…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
Krakenied committed Nov 16, 2024
1 parent e8328ba commit 3868be8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.leonardobishop.quests.bukkit.BukkitQuestsPlugin;
import com.leonardobishop.quests.common.player.QPlayerData;
import com.leonardobishop.quests.common.player.QPlayerPreferences;
import com.leonardobishop.quests.common.player.questprogressfile.QuestProgress;
import com.leonardobishop.quests.common.player.questprogressfile.QuestProgressFile;
import com.leonardobishop.quests.common.player.questprogressfile.TaskProgress;
Expand Down Expand Up @@ -328,7 +329,7 @@ public void shutdown() {
return null;
}

return new QPlayerData(uuid, null, questProgressFile); // TODO player preferences
return new QPlayerData(uuid, new QPlayerPreferences(null), questProgressFile); // TODO player preferences
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.leonardobishop.quests.bukkit.BukkitQuestsPlugin;
import com.leonardobishop.quests.common.player.QPlayerData;
import com.leonardobishop.quests.common.player.QPlayerPreferences;
import com.leonardobishop.quests.common.player.questprogressfile.QuestProgress;
import com.leonardobishop.quests.common.player.questprogressfile.QuestProgressFile;
import com.leonardobishop.quests.common.player.questprogressfile.TaskProgress;
Expand Down Expand Up @@ -144,7 +145,7 @@ public void shutdown() {
this.plugin.getQuestsLogger().debug("Player " + uuidString + " does not have a quest progress file.");
}

return new QPlayerData(uuid, null, questProgressFile); // TODO player preferences
return new QPlayerData(uuid, new QPlayerPreferences(null), questProgressFile); // TODO player preferences
} catch (final FileNotFoundException e) {
this.plugin.getLogger().log(Level.SEVERE, "Failed to find player data file for " + uuidString + ".", e);
} catch (final IOException e) {
Expand Down

0 comments on commit 3868be8

Please sign in to comment.