Fixed a major problem where the hashmap wasn't initialized on

PlayerProfile creation. However there is still a big bug with abilities
instantly wearing off and refreshing.
This commit is contained in:
nossr50
2012-02-09 15:28:05 -08:00
parent 4fdbce24d7
commit 3a812612de
8 changed files with 20 additions and 19 deletions

View File

@ -90,7 +90,7 @@ public class WoodCutting
if(y != null && y != player && m.getDistance(player.getLocation(), y.getLocation()) < 10)
y.sendMessage(mcLocale.getString("Skills.TreeFellerPlayer", new Object[] {player.getName()}));
}
PP.setSkillATS(AbilityType.TREE_FELLER, ticks);
PP.setSkillDATS(AbilityType.TREE_FELLER, System.currentTimeMillis()+(ticks*1000));
PP.setTreeFellerMode(true);
}
if(!PP.getTreeFellerMode() && !Skills.cooldownOver(player, (PP.getSkillDATS(AbilityType.TREE_FELLER)*1000), LoadProperties.treeFellerCooldown)){