Bug fix!
This commit is contained in:
parent
adb76b0681
commit
aa13bcf5c6
@ -613,13 +613,6 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
|
||||
//VOTE
|
||||
|
||||
public void attemptVoteBonus(final Player player, final Callback<Boolean> result)
|
||||
{
|
||||
if (timeTillRankBonus(player) > 0)
|
||||
result.run(false);
|
||||
getRepository().attemptRankBonus(player, result);
|
||||
}
|
||||
|
||||
public long timeTillVoteBonus(Player player)
|
||||
{
|
||||
return nextVoteTime(player) - getLocalTime();
|
||||
|
@ -250,15 +250,9 @@ public class BonusRepository extends RepositoryBase
|
||||
public void attemptVoteBonus(final Player player, final Callback<Boolean> result)
|
||||
{
|
||||
final int accountId = _manager.getClientManager().Get(player).getAccountId();
|
||||
final int coins = _manager.getRankBonusAmount(player).getCoins();
|
||||
|
||||
final int coins = 0;
|
||||
final int gems = 0;
|
||||
|
||||
if (coins == 0/* && gems == 0 */) {
|
||||
result.run(false);
|
||||
return;
|
||||
}
|
||||
|
||||
final JavaPlugin plug = _manager.getPlugin();
|
||||
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plug, new Runnable() {
|
||||
|
Loading…
Reference in New Issue
Block a user