diff --git a/src/main/java/me/blackvein/quests/Quest.java b/src/main/java/me/blackvein/quests/Quest.java index 905a18b8b..f5e667f52 100644 --- a/src/main/java/me/blackvein/quests/Quest.java +++ b/src/main/java/me/blackvein/quests/Quest.java @@ -173,6 +173,8 @@ public class Quest { public void updateCompass(Quester quester, Stage nextStage) { + if (!Quests.getInstance().useCompass) return; + Location targetLocation = null; if (nextStage == null) { resetCompass(quester); @@ -198,6 +200,7 @@ public class Quest { } protected void resetCompass(Quester q) { + if (!Quests.getInstance().useCompass) return; Player player = q.getPlayer(); if (player == null) return; diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index 5b5360cd3..b0f802b33 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -98,6 +98,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, public static Heroes heroes = null; public static PhatLoots phatLoots = null; public static boolean npcEffects = true; + public static boolean useCompass = true; public static boolean ignoreLockedQuests = false; public static boolean genFilesOnJoin = true; public static int acceptTimeout = 20; @@ -533,6 +534,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, allowCommandsForNpcQuests = config.getBoolean("allow-command-quests-with-npcs", false); showQuestReqs = config.getBoolean("show-requirements", true); allowQuitting = config.getBoolean("allow-quitting", true); + useCompass = config.getBoolean("use-compass", true); genFilesOnJoin = config.getBoolean("generate-files-on-join", true); npcEffects = config.getBoolean("show-npc-effects", true); effect = config.getString("npc-effect", "note"); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index eb46493f1..e8f079e80 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -3,6 +3,7 @@ allow-command-questing: true allow-command-quests-with-npcs: false show-requirements: true allow-quitting: true +use-compass: true ignore-locked-quests: false debug-mode: false generate-files-on-join: true