Package com.ordwen.odailyquests.rewards
Class Reward
java.lang.Object
com.ordwen.odailyquests.rewards.Reward
-
Constructor Summary
ConstructorsConstructorDescriptionReward
(RewardType rewardType, double amount, String message) Constructor for other reward.Reward
(RewardType rewardType, String currencyLabel, String currencyDisplayName, int amount, String message) Constructor for a reward that is using CoinsEngine.Reward
(RewardType rewardType, List<String> commands, String message) Constructor for a reward with a command. -
Method Summary
Modifier and TypeMethodDescriptionGet the message of a reward.double
Get the amount of a reward.Get the command of a reward.Get the currency of a reward.Get the currency display name of a reward.Get the reward type of reward.
-
Constructor Details
-
Reward
Constructor for a reward with a command.- Parameters:
commands
- the reward-command.
-
Reward
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
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
Get the currency of a reward.- Returns:
- the currency to give.
-
getRewardCurrencyDisplayName
Get the currency display name of a reward.- Returns:
- the currency display name to give.
-
getRewardType
Get the reward type of reward.- Returns:
- reward-type.
-
getMessage
Get the message of a reward.- Returns:
- the message to send to the player.
-