diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-07-05 19:56:39 +0100 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-07-05 19:56:39 +0100 |
| commit | 196410e28f3d243355552e19c8e8df972d6c5cb7 (patch) | |
| tree | 65d167124ec78426650d0368af4c7529a0bf91ed /common/src/main | |
| parent | ccc27065502aafffc5602b93b89e5addce6b3c07 (diff) | |
Add debug report & quest commands
Diffstat (limited to 'common/src/main')
| -rw-r--r-- | common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java | 17 |
1 files changed, 17 insertions, 0 deletions
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<String, DebugType> 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 + } } |
