2015-07-30 16:25:16 +02:00
|
|
|
package com.plotsquared.sponge.events;
|
|
|
|
|
2015-10-07 08:33:33 +02:00
|
|
|
import org.spongepowered.api.event.impl.AbstractEvent;
|
2015-07-30 16:25:16 +02:00
|
|
|
import org.spongepowered.api.event.Cancellable;
|
|
|
|
|
|
|
|
import com.intellectualcrafters.plot.flag.Flag;
|
|
|
|
import com.intellectualcrafters.plot.object.PlotCluster;
|
|
|
|
|
2015-09-13 06:04:31 +02:00
|
|
|
public class ClusterFlagRemoveEvent extends AbstractEvent implements Cancellable {
|
|
|
|
|
2015-07-30 16:25:16 +02:00
|
|
|
private final PlotCluster cluster;
|
|
|
|
private final Flag flag;
|
|
|
|
private boolean cancelled;
|
2015-09-13 06:04:31 +02:00
|
|
|
|
|
|
|
public ClusterFlagRemoveEvent(final Flag flag, final PlotCluster cluster) {
|
2015-07-30 16:25:16 +02:00
|
|
|
this.cluster = cluster;
|
|
|
|
this.flag = flag;
|
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
2015-07-30 16:25:16 +02:00
|
|
|
/**
|
|
|
|
* Get the cluster involved
|
|
|
|
*
|
|
|
|
* @return PlotCluster
|
|
|
|
*/
|
2015-09-13 06:04:31 +02:00
|
|
|
public PlotCluster getCluster() {
|
2015-09-11 12:09:22 +02:00
|
|
|
return cluster;
|
2015-07-30 16:25:16 +02:00
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
2015-07-30 16:25:16 +02:00
|
|
|
/**
|
|
|
|
* Get the flag involved
|
|
|
|
*
|
|
|
|
* @return Flag
|
|
|
|
*/
|
2015-09-13 06:04:31 +02:00
|
|
|
public Flag getFlag() {
|
2015-09-11 12:09:22 +02:00
|
|
|
return flag;
|
2015-07-30 16:25:16 +02:00
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
2015-07-30 16:25:16 +02:00
|
|
|
@Override
|
2015-09-13 06:04:31 +02:00
|
|
|
public boolean isCancelled() {
|
2015-09-11 12:09:22 +02:00
|
|
|
return cancelled;
|
2015-07-30 16:25:16 +02:00
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
2015-07-30 16:25:16 +02:00
|
|
|
@Override
|
2015-09-13 06:04:31 +02:00
|
|
|
public void setCancelled(final boolean cancel) {
|
2015-09-11 12:09:22 +02:00
|
|
|
cancelled = cancel;
|
2015-07-30 16:25:16 +02:00
|
|
|
}
|
2015-09-11 12:09:22 +02:00
|
|
|
}
|