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

37 lines
810 B
Java
Raw Normal View History

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.entity.living.player.Player;
2015-12-19 20:30:06 +01:00
import org.spongepowered.api.event.cause.Cause;
2015-07-30 16:25:16 +02:00
import com.intellectualcrafters.plot.object.Plot;
2015-09-13 06:04:31 +02:00
public class PlayerEnterPlotEvent extends PlayerEvent {
2015-07-30 16:25:16 +02:00
private final Plot plot;
2015-09-13 06:04:31 +02:00
2015-07-30 16:25:16 +02:00
/**
* PlayerEnterPlotEvent: Called when a player leaves a plot
*
* @param player Player that entered the plot
* @param plot Plot that was entered
*/
2015-09-13 06:04:31 +02:00
public PlayerEnterPlotEvent(final Player player, final Plot plot) {
2015-07-30 16:25:16 +02:00
super(player);
this.plot = plot;
}
2015-09-13 06:04:31 +02:00
2015-07-30 16:25:16 +02:00
/**
* Get the plot involved
*
* @return Plot
*/
2015-09-13 06:04:31 +02:00
public Plot getPlot() {
2015-09-11 12:09:22 +02:00
return plot;
2015-07-30 16:25:16 +02:00
}
2015-12-19 20:30:06 +01:00
@Override
public Cause getCause() {
return null;
}
2015-09-11 12:09:22 +02:00
}