Reward gems and shards the correct way
This commit is contained in:
parent
3858421194
commit
76ef632e81
@ -165,7 +165,7 @@ public class CashOutModule extends MiniPlugin
|
|||||||
|
|
||||||
UtilServer.CallEvent(completeEvent);
|
UtilServer.CallEvent(completeEvent);
|
||||||
|
|
||||||
_donation.Get(player).addBalance(GlobalCurrency.GEM, completeEvent.getGems());
|
_donation.rewardCurrencyUntilSuccess(GlobalCurrency.GEM, player, "Earned", completeEvent.getGems());
|
||||||
|
|
||||||
session.endSession();
|
session.endSession();
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
|
@ -30,7 +30,7 @@ public class LootShardReward extends LootItemReward
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccessful()
|
public void onSuccessful()
|
||||||
{
|
{
|
||||||
_donation.Get(_player).addBalance(GlobalCurrency.TREASURE_SHARD, _amount);
|
_donation.rewardCurrencyUntilSuccess(GlobalCurrency.TREASURE_SHARD, _player, "Earned", _amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user