aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorKrakenied <krakenied1@gmail.com>2024-11-15 16:48:34 +0100
committerKrakenied <46192742+Krakenied@users.noreply.github.com>2024-11-16 02:03:02 +0100
commit1e9618d6e5855eebaf46bb15a82a169bc8ed511c (patch)
treee3f76b434f56c3d97da0e55459c123d28fd5738c /common
parent102ed9a46f8ab07262a9b50419809e401dd9828b (diff)
Add placeholder support to vaultreward option
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/com/leonardobishop/quests/common/quest/Quest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/src/main/java/com/leonardobishop/quests/common/quest/Quest.java b/common/src/main/java/com/leonardobishop/quests/common/quest/Quest.java
index 3194b504..df3a1aaf 100644
--- a/common/src/main/java/com/leonardobishop/quests/common/quest/Quest.java
+++ b/common/src/main/java/com/leonardobishop/quests/common/quest/Quest.java
@@ -25,7 +25,7 @@ public class Quest implements Comparable<Quest> {
private List<String> startCommands;
private List<String> cancelCommands;
private List<String> expiryCommands;
- private double vaultReward;
+ private String vaultReward;
private boolean repeatEnabled;
private boolean cooldownEnabled;
private int cooldown;
@@ -210,9 +210,9 @@ public class Quest implements Comparable<Quest> {
* Get the Vault reward for this quest.
* The Vault reward is an amount of Vault economy money to be given upon completing the quest.
*
- * @return double
+ * @return string
*/
- public double getVaultReward() {
+ public @Nullable String getVaultReward() {
return this.vaultReward;
}
@@ -353,7 +353,7 @@ public class Quest implements Comparable<Quest> {
private List<String> startCommands = Collections.emptyList();
private List<String> cancelCommands = Collections.emptyList();
private List<String> expiryCommands = Collections.emptyList();
- private double vaultReward = 0.0D;
+ private String vaultReward = null;
private boolean repeatEnabled = false;
private boolean cooldownEnabled = false;
private int cooldown = 0;
@@ -417,7 +417,7 @@ public class Quest implements Comparable<Quest> {
return this;
}
- public Builder withVaultReward(double vaultReward) {
+ public Builder withVaultReward(String vaultReward) {
this.vaultReward = vaultReward;
return this;
}