mcMMO/src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerXpGainEvent.java

25 lines
580 B
Java
Raw Normal View History

2012-03-27 07:09:28 +02:00
package com.gmail.nossr50.events.experience;
import org.bukkit.entity.Player;
import com.gmail.nossr50.skills.utilities.SkillType;
2012-04-01 04:20:35 +02:00
/**
* Called when a player gains XP in a skill
*/
public class McMMOPlayerXpGainEvent extends McMMOPlayerExperienceEvent {
2012-04-01 04:20:35 +02:00
private int xpGained;
public McMMOPlayerXpGainEvent(Player player, SkillType skill, int xpGained) {
super(player, skill);
this.xpGained = xpGained;
}
/**
* @return The amount of experience gained in this event
*/
public int getXpGained() {
return xpGained;
}
}