mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-02 18:06:45 +01:00
39 lines
846 B
Java
39 lines
846 B
Java
|
package com.plotsquared.sponge.events;
|
||
|
|
||
|
import org.spongepowered.api.event.AbstractEvent;
|
||
|
|
||
|
import com.intellectualcrafters.plot.object.PlotId;
|
||
|
|
||
|
public class PlotDeleteEvent extends AbstractEvent {
|
||
|
private final PlotId id;
|
||
|
private final String world;
|
||
|
|
||
|
/**
|
||
|
* PlotDeleteEvent: Called when a plot is deleted
|
||
|
*
|
||
|
* @param world The world in which the plot was deleted
|
||
|
* @param id The ID of the plot that was deleted
|
||
|
*/
|
||
|
public PlotDeleteEvent(final String world, final PlotId id) {
|
||
|
this.id = id;
|
||
|
this.world = world;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the PlotId
|
||
|
*
|
||
|
* @return PlotId
|
||
|
*/
|
||
|
public PlotId getPlotId() {
|
||
|
return this.id;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the world name
|
||
|
*
|
||
|
* @return String
|
||
|
*/
|
||
|
public String getWorld() {
|
||
|
return this.world;
|
||
|
}
|
||
|
}
|