mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-04 19:03:14 +01:00
Prevent out of world claims
This commit is contained in:
parent
1ebcbf60a6
commit
5eaa518cd9
@ -2182,6 +2182,9 @@ public class Plot {
|
||||
* @return if the given player can claim the plot
|
||||
*/
|
||||
public boolean canClaim(@NonNull PlotPlayer<?> player) {
|
||||
if (!WorldUtil.isValidLocation(getBottomAbs())) {
|
||||
return false;
|
||||
}
|
||||
PlotCluster cluster = this.getCluster();
|
||||
if (cluster != null) {
|
||||
if (!cluster.isAdded(player.getUUID()) && !player.hasPermission("plots.admin.command.claim")) {
|
||||
|
@ -85,7 +85,7 @@ subprojects {
|
||||
|
||||
plugins.withId("java") {
|
||||
the<JavaPluginExtension>().toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user