package pl.themolka.arcade.goal;

import pl.themolka.arcade.ArcadePlugin;
import pl.themolka.commons.event.Cancelable;

/**
 * Called when a `Goal` is being completed.
 */
public class GoalCompleteEvent extends GoalEvent implements Cancelable {
    private boolean cancel;

    public GoalCompleteEvent(ArcadePlugin plugin, Goal goal) {
        super(plugin, goal);
    }

    @Override
    public boolean isCanceled() {
        return this.cancel;
    }

    @Override
    public void setCanceled(boolean cancel) {
        this.cancel = cancel;
    }
}

Fix commit issue