1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-04 08:23:57 +01:00
Jobs/com/gamingmesh/jobs/api/JobsAreaSelectionEvent.java

47 lines
1.0 KiB
Java

package com.gamingmesh.jobs.api;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.gamingmesh.jobs.container.CuboidArea;
public final class JobsAreaSelectionEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancelled;
private CuboidArea area;
private Player player;
public JobsAreaSelectionEvent(Player player, CuboidArea area) {
this.player = player;
this.area = area;
}
public Player getPlayer() {
return this.player;
}
public CuboidArea getArea() {
return area;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancel) {
cancelled = cancel;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}