Removed a function preventing boosts from being removed correctly

This commit is contained in:
Brianna O'Keefe 2018-09-27 21:35:56 -04:00
parent d09a84277d
commit bed3c0016b

View File

@ -29,7 +29,7 @@ public class BoostManager {
for (BoostData boostData : registeredBoosts) {
if (boostData.getPlayer().toString().equals(player.toString())) {
if (System.currentTimeMillis() >= boostData.getEndTime()) {
Bukkit.getScheduler().scheduleSyncDelayedTask(EpicHoppersPlugin.getInstance(), () -> removeBoostFromPlayer(boostData), 1);
removeBoostFromPlayer(boostData);
}
return boostData;
}