use of dte.employme.job.rewards.MoneyReward in project EmployMe by DavidTheExplorer.
the class JobPaymentPrompt method acceptValidatedInput.
@Override
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
Player player = (Player) context.getForWhom();
MoneyReward moneyReward = new MoneyReward(this.economy, input.doubleValue());
takeReward(player, moneyReward);
context.setSessionData("reward", moneyReward);
return Prompt.END_OF_CONVERSATION;
}
Aggregations