mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-02 09:56:44 +01:00
31 lines
673 B
Java
31 lines
673 B
Java
package com.plotsquared.sponge.events;
|
|
|
|
import org.spongepowered.api.entity.player.Player;
|
|
|
|
import com.intellectualcrafters.plot.object.Plot;
|
|
|
|
public class PlayerLeavePlotEvent extends PlayerEvent {
|
|
|
|
private final Plot plot;
|
|
|
|
/**
|
|
* PlayerLeavePlotEvent: Called when a player leaves a plot
|
|
*
|
|
* @param player Player that left the plot
|
|
* @param plot Plot that was left
|
|
*/
|
|
public PlayerLeavePlotEvent(final Player player, final Plot plot) {
|
|
super(player);
|
|
this.plot = plot;
|
|
}
|
|
|
|
/**
|
|
* Get the plot involved
|
|
*
|
|
* @return Plot
|
|
*/
|
|
public Plot getPlot() {
|
|
return plot;
|
|
}
|
|
}
|