mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-21 03:03:02 +01:00
22 lines
470 B
Java
22 lines
470 B
Java
package com.gmail.nossr50.events;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import com.gmail.nossr50.datatypes.SkillType;
|
|
|
|
public class McMMOPlayerXpGainEvent extends McMMOPlayerExperienceEvent {
|
|
private int xpGained;
|
|
|
|
public McMMOPlayerXpGainEvent(Player player, SkillType skill, int xpGained) {
|
|
super(player, skill);
|
|
this.xpGained = xpGained;
|
|
}
|
|
|
|
/**
|
|
* @return The number experience gained in this event
|
|
*/
|
|
public int getXpGained() {
|
|
return xpGained;
|
|
}
|
|
}
|