Use rewardCoinsLater for giving shards

This commit is contained in:
Shaun Bennett 2016-06-09 18:19:22 -05:00
parent 77e9de0f8f
commit 35e1c2af65

View File

@ -217,6 +217,7 @@ public class GameGemManager implements Listener
total += earned;
Rank rank = Manager.GetClients().Get(player).GetRank();
int accountId = Manager.GetClients().getAccountId(player);
if (rank == rank.ULTRA)
shards *= 1.5;
@ -228,7 +229,10 @@ public class GameGemManager implements Listener
shards *= 3;
Manager.GetDonation().RewardGems(null, "Earned " + game.GetName(), player.getName(), player.getUniqueId(), total);
Manager.GetDonation().RewardCoins(null, "Earned", player.getName(), Manager.GetClients().getAccountId(player), shards);
if (accountId != -1)
{
Manager.GetDonation().rewardCoinsUntilSuccess(null, "Earned", player.getName(), accountId, shards);
}
//Stats
Manager.GetStatsManager().incrementStat(player, "Global.GemsEarned", total);