This commit is contained in:
Shaun Bennett 2015-08-10 04:54:01 -05:00
parent adb76b0681
commit aa13bcf5c6
2 changed files with 1 additions and 14 deletions

View File

@ -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();

View File

@ -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() {