diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernMySQLStorageProvider.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernMySQLStorageProvider.java index 4eb8cba2..df1f3a18 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernMySQLStorageProvider.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernMySQLStorageProvider.java @@ -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; @@ -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 diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernYAMLStorageProvider.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernYAMLStorageProvider.java index 668b4b89..2b6b1cf9 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernYAMLStorageProvider.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/storage/ModernYAMLStorageProvider.java @@ -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; @@ -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) {