Add note about PlayerPlotAutoEvent return null plot

This commit is contained in:
dordsor21 2021-06-12 11:35:55 +01:00
parent 3cd9b76805
commit a9d896eb45
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -30,6 +30,9 @@ import com.plotsquared.core.player.PlotPlayer;
import com.plotsquared.core.plot.PlotArea; import com.plotsquared.core.plot.PlotArea;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
/**
* PlayerAutoPlotEvent returns null for {@code PlotEvent.getPlot()} as the event is fired before the plot is chosen.
*/
public class PlayerAutoPlotEvent extends PlotEvent implements CancellablePlotEvent { public class PlayerAutoPlotEvent extends PlotEvent implements CancellablePlotEvent {
private final PlotPlayer<?> player; private final PlotPlayer<?> player;