mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
42 lines
873 B
Java
42 lines
873 B
Java
package com.plotsquared.sponge.events;
|
|
|
|
import com.intellectualcrafters.plot.object.Plot;
|
|
import com.intellectualcrafters.plot.object.PlotId;
|
|
import org.spongepowered.api.event.cause.Cause;
|
|
import org.spongepowered.api.event.impl.AbstractEvent;
|
|
|
|
public class PlotDeleteEvent extends AbstractEvent {
|
|
private final Plot plot;
|
|
|
|
/**
|
|
* PlotDeleteEvent: Called when a plot is deleted
|
|
*
|
|
* @param plot The plot that was deleted
|
|
*/
|
|
public PlotDeleteEvent(Plot plot) {
|
|
this.plot = plot;
|
|
}
|
|
|
|
/**
|
|
* Get the PlotId
|
|
*
|
|
* @return PlotId
|
|
*/
|
|
public PlotId getPlotId() {
|
|
return plot.getId();
|
|
}
|
|
|
|
/**
|
|
* Get the world name
|
|
*
|
|
* @return String
|
|
*/
|
|
public String getWorld() {
|
|
return plot.getWorldName();
|
|
}
|
|
|
|
@Override public Cause getCause() {
|
|
return null;
|
|
}
|
|
}
|