aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/leonardobishop
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-06-03 11:02:48 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-06-03 11:02:48 +0100
commit3777ffb5b4f89728a5c0e9a016fe959a456c5111 (patch)
treea269935978e46a9fcace32916df2229d96dec95c /src/main/java/com/leonardobishop
parente9723a813bd8ee4d92efb68c0b0910ab9c13ade8 (diff)
Fix problem with autosave unloading players
Diffstat (limited to 'src/main/java/com/leonardobishop')
-rw-r--r--src/main/java/com/leonardobishop/quests/QuestsAutosaveRunnable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/leonardobishop/quests/QuestsAutosaveRunnable.java b/src/main/java/com/leonardobishop/quests/QuestsAutosaveRunnable.java
index 93cc30bc..c042fd32 100644
--- a/src/main/java/com/leonardobishop/quests/QuestsAutosaveRunnable.java
+++ b/src/main/java/com/leonardobishop/quests/QuestsAutosaveRunnable.java
@@ -38,7 +38,7 @@ public class QuestsAutosaveRunnable extends BukkitRunnable {
if (Bukkit.getPlayer(player) != null) {
QuestProgressFile clonedProgressFile = new QuestProgressFile(plugin.getPlayerManager().getPlayer(player).getQuestProgressFile());
- Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> plugin.getPlayerManager().removePlayer(player, clonedProgressFile));
+ Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> plugin.getPlayerManager().savePlayer(player, clonedProgressFile));
}
}