aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/leonardobishop/quests/Quests.java17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/main/java/com/leonardobishop/quests/Quests.java b/src/main/java/com/leonardobishop/quests/Quests.java
index f1a65747..d9ee9d3f 100644
--- a/src/main/java/com/leonardobishop/quests/Quests.java
+++ b/src/main/java/com/leonardobishop/quests/Quests.java
@@ -180,10 +180,19 @@ public class Quests extends JavaPlugin {
qPlayerManager.loadPlayer(player.getUniqueId(), false);
}
});
- Bukkit.getScheduler().runTaskAsynchronously(this, () -> {
- updater = new Updater(this);
- updater.check();
- });
+
+ // this intentionally should not be documented
+ boolean ignoreUpdates = false;
+ try {
+ ignoreUpdates = new File(this.getDataFolder() + File.separator + "stfuQuestsUpdate").exists();
+ } catch (Throwable ignored) { }
+
+ updater = new Updater(this);
+ if (!ignoreUpdates) {
+ Bukkit.getScheduler().runTaskAsynchronously(this, () -> {
+ updater.check();
+ });
+ }
}
@Override