diff options
| author | fatpigsarefat <fatpigsarefat@outlook.com> | 2019-02-03 11:22:35 +0000 |
|---|---|---|
| committer | fatpigsarefat <fatpigsarefat@outlook.com> | 2019-02-03 11:22:35 +0000 |
| commit | cce18af4a84de05656081529cc5b6a5d7276aa58 (patch) | |
| tree | f12f6d1d04051b008d73d72abae7d1bb5aee35d1 /src | |
| parent | 9edfa94f911992f1c8104afe58f9aa7659f8c0b6 (diff) | |
Option to show quest registrations added
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/com/leonardobishop/quests/Quests.java | 4 | ||||
| -rw-r--r-- | src/main/resources/config.yml | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/leonardobishop/quests/Quests.java b/src/main/java/com/leonardobishop/quests/Quests.java index 40051d49..a0ee17cc 100644 --- a/src/main/java/com/leonardobishop/quests/Quests.java +++ b/src/main/java/com/leonardobishop/quests/Quests.java @@ -303,7 +303,9 @@ public class Quests extends JavaPlugin { quest.registerTask(task); } - this.getLogger().log(Level.INFO, "Registering quest " + quest.getId() + " with " + quest.getTasks().size() + " tasks."); + if (this.getConfig().getBoolean("options.show-quests-registrations")) { + this.getLogger().log(Level.INFO, "Registering quest " + quest.getId() + " with " + quest.getTasks().size() + " tasks."); + } questManager.registerQuest(quest); taskTypeManager.registerQuestTasksWithTaskTypes(quest); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 84aff28f..a54061bf 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -999,6 +999,8 @@ options: quests-menu: "Quests" daily-quests: "Daily Quests" quest-cancel: "Cancel Quest" + # Show when quests register in console. Disable if you want less console spam at startup. + show-quest-registrations: true # This switches up the entire quest system. # By enabling daily-quests, players will no longer be presented with the standard Quest GUI. |
