Fixing cooldown timers so that they display the proper cooldown for players with perks.

This commit is contained in:
Glitchfinder
2012-11-12 21:57:57 -08:00
parent adbb20d7c9
commit 01f38537de
3 changed files with 19 additions and 6 deletions

View File

@ -292,7 +292,7 @@ public class BlastMining {
/* Check Cooldown */
if (!Skills.cooldownOver(profile.getSkillDATS(ability) * TIME_CONVERSION_FACTOR, ability.getCooldown(), player)) {
player.sendMessage(LocaleLoader.getString("Skills.TooTired") + ChatColor.YELLOW + " (" + Skills.calculateTimeLeft(profile.getSkillDATS(ability) * TIME_CONVERSION_FACTOR, ability.getCooldown()) + "s)");
player.sendMessage(LocaleLoader.getString("Skills.TooTired") + ChatColor.YELLOW + " (" + Skills.calculateTimeLeft(profile.getSkillDATS(ability) * TIME_CONVERSION_FACTOR, ability.getCooldown(), player) + "s)");
return;
}