package com.gmail.nossr50.events.experience;

import org.bukkit.entity.Player;

import com.gmail.nossr50.skills.utilities.SkillType;

/**
 * Called when a user levels up in a skill
 */
public class McMMOPlayerLevelUpEvent extends McMMOPlayerExperienceEvent {
    private int levelsGained;

    public McMMOPlayerLevelUpEvent(Player player, SkillType skill) {
        super(player, skill);
        this.levelsGained = 1;    // Always 1 for now as we call in the loop where the levelups are calculated, could change later!
    }

    /**
     * @return The number of levels gained in this event
     */
    public int getLevelsGained() {
        return levelsGained;
    }
}

@@ -416,239 +416,490 @@
 = 1;
+%0A
     
-// Always 1 for now as we call in the loop where the levelups are calculated, could change later!%0A    %7D%0A%0A    /**%0A     * @return The number of levels gained in this event%0A     */%0A    public int getLevelsGained() %7B%0A        return
+%7D%0A%0A    public McMMOPlayerLevelUpEvent(Player player, SkillType skill, int levelsGained) %7B%0A        super(player, skill);%0A        this.levelsGained = levelsGained;%0A    %7D%0A%0A    /**%0A     * @return The number of levels gained in this event%0A     */%0A    public int getLevelsGained() %7B%0A        return levelsGained;%0A    %7D%0A%0A    /**%0A     * @param levelsGained int number of levels gained in this event%0A     */%0A    public void setLevelsGained(int levelsGained) %7B%0A        this.levelsGained =
  lev

Add constructor for adding multiple levels at once. Need to work out how to handle level-ups in order for this to be properly cancelled, however.