mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
Prevent out of world claims (#4475)
* Prevent out of world claims * update java version in workflows
This commit is contained in:
@ -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")) {
|
||||
|
Reference in New Issue
Block a user