From a9d896eb455360da3f373aba1a3f61953e77b5de Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 12 Jun 2021 11:35:55 +0100 Subject: [PATCH] Add note about PlayerPlotAutoEvent return null plot --- .../java/com/plotsquared/core/events/PlayerAutoPlotEvent.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java b/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java index d742ff469..e120675c7 100644 --- a/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java +++ b/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java @@ -30,6 +30,9 @@ import com.plotsquared.core.player.PlotPlayer; import com.plotsquared.core.plot.PlotArea; 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 { private final PlotPlayer player;