From b01291c4ff78fd74240f0125c10bb6f729cf90b0 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 12 Jun 2021 11:36:33 +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 12d44ff47..3cb8d7f74 100644 --- a/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java +++ b/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java @@ -33,6 +33,9 @@ import lombok.Setter; import javax.annotation.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 Result eventResult;