chore: use fluent setter

This commit is contained in:
Pierre Maurice Schwang 2023-12-04 19:59:23 +01:00
parent a0ee0caba9
commit fb3da2f97c

View File

@ -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");
}