Class Reward

java.lang.Object
com.ordwen.odailyquests.rewards.Reward

public class Reward extends Object
  • Constructor Details

    • Reward

      public Reward(RewardType rewardType, List<String> commands, String message)
      Constructor for a reward with a command.
      Parameters:
      commands - the reward-command.
    • Reward

      public Reward(RewardType rewardType, double amount, String message)
      Constructor for other reward.
      Parameters:
      amount - the reward amount.
    • Reward

      public Reward(RewardType rewardType, String currencyLabel, String currencyDisplayName, int amount, String message)
      Constructor for a reward that is using CoinsEngine.
      Parameters:
      currencyLabel - the reward-currency, by its name in the configuration.
      currencyDisplayName - the name of the currency that will be displayed to the player.
      amount - the reward amount.
  • Method Details

    • getRewardCommands

      public List<String> getRewardCommands()
      Get the command of a reward.
      Returns:
      the command to perform.
    • getRewardAmount

      public double getRewardAmount()
      Get the amount of a reward.
      Returns:
      the quantity to give.
    • getRewardCurrency

      public String getRewardCurrency()
      Get the currency of a reward.
      Returns:
      the currency to give.
    • getRewardCurrencyDisplayName

      public String getRewardCurrencyDisplayName()
      Get the currency display name of a reward.
      Returns:
      the currency display name to give.
    • getRewardType

      public RewardType getRewardType()
      Get the reward type of reward.
      Returns:
      reward-type.
    • getMessage

      public String getMessage()
      Get the message of a reward.
      Returns:
      the message to send to the player.