PlotSquared/src/main/java/com/plotsquared/sponge/events/PlayerEnterPlotEvent.java

31 lines
711 B
Java
Raw Normal View History

2015-07-30 16:25:16 +02:00
package com.plotsquared.sponge.events;
2015-09-06 03:53:56 +02:00
import org.spongepowered.api.entity.player.Player;
2015-07-30 16:25:16 +02:00
import com.intellectualcrafters.plot.object.Plot;
public class PlayerEnterPlotEvent extends PlayerEvent {
private final Plot plot;
private boolean cancelled;
/**
* PlayerEnterPlotEvent: Called when a player leaves a plot
*
* @param player Player that entered the plot
* @param plot Plot that was entered
*/
public PlayerEnterPlotEvent(final Player player, final Plot plot) {
super(player);
this.plot = plot;
}
/**
* Get the plot involved
*
* @return Plot
*/
public Plot getPlot() {
return this.plot;
}
}