aboutsummaryrefslogtreecommitdiffstats
path: root/bukkit
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-09-12 20:29:50 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-09-12 20:29:50 +0100
commit0f20e39d4f29770e7aaf6b83ab398b70142b3e32 (patch)
treed4e2e644c03b0645fb01b841ed425532e4cf0666 /bukkit
parente0cee4cff980e27ae78089fe9e4271d3218670b9 (diff)
Fix PAPI task completed placeholder not following config (closes #251)
Diffstat (limited to 'bukkit')
-rw-r--r--bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/QuestsPlaceholders.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/QuestsPlaceholders.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/QuestsPlaceholders.java
index 415c8236..13cb0023 100644
--- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/QuestsPlaceholders.java
+++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/QuestsPlaceholders.java
@@ -204,7 +204,7 @@ public class QuestsPlaceholders extends PlaceholderExpansion implements Cacheabl
break;
case "completed":
case "c":
- result = String.valueOf(qPlayer.getQuestProgressFile().getQuestProgress(quest).getTaskProgress(t[1]).isCompleted());
+ result = String.valueOf(qPlayer.getQuestProgressFile().getQuestProgress(quest).getTaskProgress(t[1]).isCompleted() ? Messages.PLACEHOLDERAPI_TRUE.getMessage() : Messages.PLACEHOLDERAPI_FALSE.getMessage());
break;
default:
return args[0] + "_" + args[1] + "_" + args[2] + " is not a valid placeholder";