Search in sources :

Example 1 with MoneyReward

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;
}
Also used : Player(org.bukkit.entity.Player) MoneyReward(dte.employme.job.rewards.MoneyReward)

Aggregations

MoneyReward (dte.employme.job.rewards.MoneyReward)1 Player (org.bukkit.entity.Player)1