for (Map.Entry<Key, Long> entry : playerCooldowns.entrySet()) { entry.setValue(entry.getValue() - 20); }