mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 07:05:51 +01:00
Remove lambda for below Java 8
This commit is contained in:
parent
ed357e9a84
commit
e819917af1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user