From fb3da2f97cbb416ff5dc8e76a88f68860bb7006d Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Mon, 4 Dec 2023 19:59:23 +0100 Subject: [PATCH] chore: use fluent setter --- .../java/com/plotsquared/core/events/PlayerPlotLimitEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/events/PlayerPlotLimitEvent.java b/Core/src/main/java/com/plotsquared/core/events/PlayerPlotLimitEvent.java index 33b8835ab..4aec66c70 100644 --- a/Core/src/main/java/com/plotsquared/core/events/PlayerPlotLimitEvent.java +++ b/Core/src/main/java/com/plotsquared/core/events/PlayerPlotLimitEvent.java @@ -46,7 +46,7 @@ public class PlayerPlotLimitEvent { * @param limit The amount of plots a player may claim. Must be {@code 0} or greater. * @since TODO */ - public void setLimit(@NonNegative final int limit) { + public void limit(@NonNegative final int limit) { if (limit < 0) { throw new IllegalArgumentException("Player plot limit must be greater or equal 0"); }