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

34 lines
669 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;
2015-09-11 12:09:22 +02:00
public class PlayerLeavePlotEvent extends PlayerEvent
{
2015-07-30 16:25:16 +02:00
private final Plot plot;
2015-09-11 12:09:22 +02:00
2015-07-30 16:25:16 +02:00
/**
* PlayerLeavePlotEvent: Called when a player leaves a plot
*
* @param player Player that left the plot
* @param plot Plot that was left
*/
2015-09-11 12:09:22 +02:00
public PlayerLeavePlotEvent(final Player player, final Plot plot)
{
2015-07-30 16:25:16 +02:00
super(player);
this.plot = plot;
}
2015-09-11 12:09:22 +02:00
2015-07-30 16:25:16 +02:00
/**
* Get the plot involved
*
* @return Plot
*/
2015-09-11 12:09:22 +02:00
public Plot getPlot()
{
return plot;
2015-07-30 16:25:16 +02:00
}
2015-09-11 12:09:22 +02:00
}