mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 20:56:45 +01:00
Fixed feedback recipient for notify flags (Owner instead of entering / leaving player) (#3011)
This commit is contained in:
parent
48815649a8
commit
2c40648a60
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user