Use rewardCoinsLater for giving shards
This commit is contained in:
parent
77e9de0f8f
commit
35e1c2af65
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user