From 196410e28f3d243355552e19c8e8df972d6c5cb7 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Tue, 5 Jul 2022 19:56:39 +0100 Subject: Add debug report & quest commands --- .../quests/common/player/QPlayerPreferences.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'common/src/main/java') diff --git a/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java b/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java index db1e9230..19115f79 100644 --- a/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java +++ b/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java @@ -2,8 +2,12 @@ package com.leonardobishop.quests.common.player; import org.jetbrains.annotations.Nullable; +import java.util.HashMap; +import java.util.Map; + public class QPlayerPreferences { + private final Map debug = new HashMap<>(); private String trackedQuestId; public QPlayerPreferences(String trackedQuestId) { @@ -17,4 +21,17 @@ public class QPlayerPreferences { public void setTrackedQuestId(@Nullable String trackedQuestId) { this.trackedQuestId = trackedQuestId; } + + public DebugType getDebug(String questId) { + return debug.get(questId); + } + + public void setDebug(String questId, DebugType debugType) { + debug.put(questId, debugType); + } + + public enum DebugType { + SELF, + ALL + } } -- cgit v1.2.3-70-g09d2