Remove lambda for below Java 8

This commit is contained in:
HappyPikachu 2017-08-01 20:43:14 -04:00
parent ed357e9a84
commit e819917af1

View File

@ -48,6 +48,7 @@ import org.bukkit.projectiles.ProjectileSource;
import com.sk89q.worldguard.protection.managers.RegionManager;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import me.blackvein.quests.util.ItemUtil;
import me.blackvein.quests.util.Lang;
import net.citizensnpcs.api.CitizensAPI;
@ -649,11 +650,11 @@ public class PlayerListener implements Listener {
currentStage.disconnectEvent.fire(quester, quest);
}
}
quester.timers.keySet().forEach(timerId -> {
for (Integer timerId : quester.timers.keySet()) {
plugin.getServer().getScheduler().cancelTask(timerId);
quester.timers.get(timerId).failQuest(quester);
quester.timers.remove(timerId);
});
}
if (quester.hasData()) {
quester.saveData();