package in.twizmwaz.cardinal.event;
import in.twizmwaz.cardinal.module.modules.classModule.ClassModule;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class ClassChangeEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private final Player player;
private final ClassModule classModule;
private boolean cancelled;
public ClassChangeEvent(Player player, ClassModule classModule) {
this.player = player;
this.classModule = classModule;
}
public static HandlerList getHandlerList() {
return handlers;
}
public HandlerList getHandlers() {
return handlers;
}
public Player getPlayer() {
return player;
}
public ClassModule getClassModule() {
return classModule;
}
public boolean isCancelled() {
return cancelled;
}
public void setCancelled(boolean isCancelled) {
this.cancelled = isCancelled;
}
}