File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Core/src/main/java/com/plotsquared/core/plot Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2182,6 +2182,9 @@ public BlockLoc getPosition() {
21822182 * @return if the given player can claim the plot
21832183 */
21842184 public boolean canClaim (@ NonNull PlotPlayer <?> player ) {
2185+ if (!WorldUtil .isValidLocation (getBottomAbs ())) {
2186+ return false ;
2187+ }
21852188 PlotCluster cluster = this .getCluster ();
21862189 if (cluster != null ) {
21872190 if (!cluster .isAdded (player .getUUID ()) && !player .hasPermission ("plots.admin.command.claim" )) {
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ subprojects {
8585
8686 plugins.withId(" java" ) {
8787 the<JavaPluginExtension >().toolchain {
88- languageVersion.set(JavaLanguageVersion .of(17 ))
88+ languageVersion.set(JavaLanguageVersion .of(21 ))
8989 }
9090 }
9191
You can’t perform that action at this time.
0 commit comments