mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-04 19:03:14 +01:00
chore: use fluent setter
This commit is contained in:
parent
a0ee0caba9
commit
fb3da2f97c
@ -46,7 +46,7 @@ public class PlayerPlotLimitEvent {
|
|||||||
* @param limit The amount of plots a player may claim. Must be {@code 0} or greater.
|
* @param limit The amount of plots a player may claim. Must be {@code 0} or greater.
|
||||||
* @since TODO
|
* @since TODO
|
||||||
*/
|
*/
|
||||||
public void setLimit(@NonNegative final int limit) {
|
public void limit(@NonNegative final int limit) {
|
||||||
if (limit < 0) {
|
if (limit < 0) {
|
||||||
throw new IllegalArgumentException("Player plot limit must be greater or equal 0");
|
throw new IllegalArgumentException("Player plot limit must be greater or equal 0");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user