package com.dragovorn.openrpg.event.player;

import com.dragovorn.openrpg.player.OpenPlayer;
import org.bukkit.event.HandlerList;

public class LevelEvent extends OpenPlayerEvent {

    private static HandlerList HANDLERS = new HandlerList();

    private int newLevel;
    private int previous;

    public LevelEvent(OpenPlayer player, int previous, int newLevel) {
        super(player);

        this.previous = previous;
        this.newLevel = newLevel;
    }

    public int getPreviousLevel() {
        return this.previous;
    }

    public int getNewLevel() {
        return this.newLevel;
    }

    @Override
    public HandlerList getHandlers() {
        return HANDLERS;
    }

    public static HandlerList getHandlerList() {
        return HANDLERS;
    }
}