Add use-compass option to config, true by default

This commit is contained in:
Nathan Wolf 2015-12-13 19:37:05 -08:00
parent fb3f95b75c
commit c75f679158
3 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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");

View File

@ -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