From 2c40648a60b6943404b9d46f8086febef5a9918d Mon Sep 17 00:00:00 2001 From: "Patrick \"IPat\" Hein" Date: Tue, 11 May 2021 18:26:24 +0200 Subject: [PATCH] Fixed feedback recipient for notify flags (Owner instead of entering / leaving player) (#3011) --- .../main/java/com/plotsquared/core/listener/PlotListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java b/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java index 2c6e0f2f2..6705dd179 100644 --- a/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java +++ b/Core/src/main/java/com/plotsquared/core/listener/PlotListener.java @@ -175,7 +175,7 @@ public class PlotListener { for (UUID uuid : plot.getOwners()) { final PlotPlayer owner = PlotSquared.platform().playerManager().getPlayerIfExists(uuid); if (owner != null && !owner.getUUID().equals(player.getUUID()) && owner.canSee(player)) { - player.sendMessage( + owner.sendMessage( TranslatableCaption.of("notification.notify_enter"), Template.of("player", player.getName()), Template.of("plot", plot.getId().toString()) @@ -383,7 +383,7 @@ public class PlotListener { for (UUID uuid : plot.getOwners()) { final PlotPlayer owner = PlotSquared.platform().playerManager().getPlayerIfExists(uuid); if ((owner != null) && !owner.getUUID().equals(player.getUUID()) && owner.canSee(player)) { - player.sendMessage( + owner.sendMessage( TranslatableCaption.of("notification.notify_leave"), Template.of("player", player.getName()), Template.of("plot", plot.getId().toString())