From 62f675adbe1ed70d92efc7ef4532237290f0ee45 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Fri, 21 Aug 2020 00:01:53 +0200 Subject: [PATCH] Allow visiting all owners of merged plots --- Core/src/main/java/com/plotsquared/core/command/Visit.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Visit.java b/Core/src/main/java/com/plotsquared/core/command/Visit.java index 9d803f6e3..ae6b3947e 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Visit.java +++ b/Core/src/main/java/com/plotsquared/core/command/Visit.java @@ -180,7 +180,9 @@ public class Visit extends Command { Captions.COMMAND_SYNTAX.send(player, getUsage()); } else { final UUID uuid = uuids.toArray(new UUID[0])[0]; - this.visit(player, PlotQuery.newQuery().ownedBy(uuid).whereBasePlot(), finalSortByArea, confirm, whenDone, finalPage1); + this.visit(player, PlotQuery.newQuery() + .thatPasses(plot -> plot.isOwner(uuid)), + finalSortByArea, confirm, whenDone, finalPage1); } }); break; @@ -209,7 +211,7 @@ public class Visit extends Command { MainUtil.sendMessage(player, Captions.INVALID_PLAYER, finalArgs[0]); } } else { - this.visit(player, PlotQuery.newQuery().ownedBy(uuid).whereBasePlot(), null, confirm, whenDone, finalPage); + this.visit(player, PlotQuery.newQuery().thatPasses(plot -> plot.isOwner(uuid)).whereBasePlot(), null, confirm, whenDone, finalPage); } }); } else {