diff options
| author | Krakenied <Krakenied1@gmail.com> | 2024-02-21 15:25:38 +0100 |
|---|---|---|
| committer | Leonardo Bishop <13875753+LMBishop@users.noreply.github.com> | 2024-03-09 17:01:12 +0000 |
| commit | d7d5e3ec51e7269832527fa1187cd7aff30062df (patch) | |
| tree | e0336a790f370ec59816863979089aa61ddeb7cf /bukkit/src/main/java/com/leonardobishop | |
| parent | a5f5df1fe10a237aa0c3e4cbef5e71482e5d9a8b (diff) | |
Try to get progress placeholders by task type too
Diffstat (limited to 'bukkit/src/main/java/com/leonardobishop')
| -rw-r--r-- | bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java index 78728f89..a71d1026 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/util/TaskUtils.java @@ -171,6 +171,11 @@ public class TaskUtils { break titleSearch; } + title = quest.getProgressPlaceholders().get(task.getType()); // one title for all tasks of the same type + if (title != null) { + break titleSearch; + } + title = quest.getProgressPlaceholders().get("*"); // one title for all tasks if (title != null) { break titleSearch; |
