mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 06:06:45 +01:00
34 lines
827 B
Java
34 lines
827 B
Java
|
package com.gmail.nossr50.events;
|
||
|
|
||
|
import org.bukkit.entity.Player;
|
||
|
import org.bukkit.event.HandlerList;
|
||
|
import org.bukkit.event.player.PlayerEvent;
|
||
|
|
||
|
import com.gmail.nossr50.datatypes.SkillType;
|
||
|
|
||
|
public class McMMOPlayerExperienceEvent extends PlayerEvent{
|
||
|
|
||
|
protected SkillType skill;
|
||
|
|
||
|
public McMMOPlayerExperienceEvent(Player player, SkillType skill) {
|
||
|
super(player);
|
||
|
this.skill = skill;
|
||
|
}
|
||
|
|
||
|
public SkillType getSkill() {
|
||
|
return skill;
|
||
|
}
|
||
|
|
||
|
/** Rest of file is required boilerplate for custom events **/
|
||
|
private static final HandlerList handlers = new HandlerList();
|
||
|
|
||
|
@Override
|
||
|
public HandlerList getHandlers() {
|
||
|
return handlers;
|
||
|
}
|
||
|
|
||
|
public static HandlerList getHandlerList() {
|
||
|
return handlers;
|
||
|
}
|
||
|
}
|