Refixed NPE due to GainXp task

This commit is contained in:
bm01
2012-05-06 09:47:25 +02:00
parent 1b37ba8daa
commit 3e435c419a
11 changed files with 16 additions and 18 deletions

View File

@ -61,7 +61,7 @@ public class ExperienceAPI {
* @param XP The amount of XP to add
*/
public void addXP(Player player, SkillType skillType, int XP) {
Users.getProfile(player).addXP(skillType, XP);
Users.getProfile(player).addXP(player, skillType, XP);
checkXP(player, skillType);
}