File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed
Core/src/main/java/com/plotsquared/core/plot Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1616 uses : actions/setup-java@v4
1717 with :
1818 distribution : temurin
19- java-version : 17
19+ java-version : 21
2020 - name : Clean Build
2121 run : ./gradlew clean build
Original file line number Diff line number Diff line change 1616 uses : actions/setup-java@v4
1717 with :
1818 distribution : temurin
19- java-version : 17
19+ java-version : 21
2020 - name : Clean Build
2121 run : ./gradlew clean build
2222 - name : Determine release status
Original file line number Diff line number Diff line change 2525 uses : actions/setup-java@v4
2626 with :
2727 distribution : temurin
28- java-version : 17
28+ java-version : 21
2929 - name : Initialize CodeQL
3030 uses : github/codeql-action/init@v3
3131 with :
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