mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
37 lines
810 B
Java
37 lines
810 B
Java
package com.plotsquared.sponge.events;
|
|
|
|
import org.spongepowered.api.entity.living.player.Player;
|
|
import org.spongepowered.api.event.cause.Cause;
|
|
|
|
import com.intellectualcrafters.plot.object.Plot;
|
|
|
|
public class PlayerEnterPlotEvent extends PlayerEvent {
|
|
|
|
private final Plot plot;
|
|
|
|
/**
|
|
* 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 plot;
|
|
}
|
|
|
|
@Override
|
|
public Cause getCause() {
|
|
return null;
|
|
}
|
|
}
|