2012-03-27 07:09:28 +02:00
|
|
|
package com.gmail.nossr50.events.experience;
|
2012-02-11 06:02:48 +01:00
|
|
|
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
import com.gmail.nossr50.datatypes.SkillType;
|
|
|
|
|
2012-03-27 05:01:51 +02:00
|
|
|
public class McMMOPlayerXpGainEvent extends McMMOPlayerExperienceEvent {
|
2012-02-11 06:02:48 +01:00
|
|
|
private int xpGained;
|
|
|
|
|
|
|
|
public McMMOPlayerXpGainEvent(Player player, SkillType skill, int xpGained) {
|
2012-03-27 05:01:51 +02:00
|
|
|
super(player, skill);
|
2012-02-11 06:02:48 +01:00
|
|
|
this.xpGained = xpGained;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return The number experience gained in this event
|
|
|
|
*/
|
|
|
|
public int getXpGained() {
|
|
|
|
return xpGained;
|
|
|
|
}
|
|
|
|
}
|