mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
47 lines
1.0 KiB
Java
47 lines
1.0 KiB
Java
|
package com.plotsquared.sponge.events;
|
||
|
|
||
|
import org.spongepowered.api.event.AbstractEvent;
|
||
|
import org.spongepowered.api.event.Cancellable;
|
||
|
|
||
|
import com.intellectualcrafters.plot.flag.Flag;
|
||
|
import com.intellectualcrafters.plot.object.PlotCluster;
|
||
|
|
||
|
public class ClusterFlagRemoveEvent extends AbstractEvent implements Cancellable {
|
||
|
|
||
|
private final PlotCluster cluster;
|
||
|
private final Flag flag;
|
||
|
private boolean cancelled;
|
||
|
|
||
|
public ClusterFlagRemoveEvent(final Flag flag, final PlotCluster cluster) {
|
||
|
this.cluster = cluster;
|
||
|
this.flag = flag;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the cluster involved
|
||
|
*
|
||
|
* @return PlotCluster
|
||
|
*/
|
||
|
public PlotCluster getCluster() {
|
||
|
return this.cluster;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the flag involved
|
||
|
*
|
||
|
* @return Flag
|
||
|
*/
|
||
|
public Flag getFlag() {
|
||
|
return this.flag;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean isCancelled() {
|
||
|
return cancelled;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void setCancelled(boolean cancel) {
|
||
|
cancelled = cancel;
|
||
|
}
|
||
|
}
|