mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 03:25:20 +01:00
Add use-compass option to config, true by default
This commit is contained in:
parent
fb3f95b75c
commit
c75f679158
@ -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;
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user