diff options
Diffstat (limited to 'common/src')
| -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 + } } |
