mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16: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()) {
|
for (UUID uuid : plot.getOwners()) {
|
||||||
final PlotPlayer<?> owner = PlotSquared.platform().playerManager().getPlayerIfExists(uuid);
|
final PlotPlayer<?> owner = PlotSquared.platform().playerManager().getPlayerIfExists(uuid);
|
||||||
if (owner != null && !owner.getUUID().equals(player.getUUID()) && owner.canSee(player)) {
|
if (owner != null && !owner.getUUID().equals(player.getUUID()) && owner.canSee(player)) {
|
||||||
player.sendMessage(
|
owner.sendMessage(
|
||||||
TranslatableCaption.of("notification.notify_enter"),
|
TranslatableCaption.of("notification.notify_enter"),
|
||||||
Template.of("player", player.getName()),
|
Template.of("player", player.getName()),
|
||||||
Template.of("plot", plot.getId().toString())
|
Template.of("plot", plot.getId().toString())
|
||||||
@ -383,7 +383,7 @@ public class PlotListener {
|
|||||||
for (UUID uuid : plot.getOwners()) {
|
for (UUID uuid : plot.getOwners()) {
|
||||||
final PlotPlayer<?> owner = PlotSquared.platform().playerManager().getPlayerIfExists(uuid);
|
final PlotPlayer<?> owner = PlotSquared.platform().playerManager().getPlayerIfExists(uuid);
|
||||||
if ((owner != null) && !owner.getUUID().equals(player.getUUID()) && owner.canSee(player)) {
|
if ((owner != null) && !owner.getUUID().equals(player.getUUID()) && owner.canSee(player)) {
|
||||||
player.sendMessage(
|
owner.sendMessage(
|
||||||
TranslatableCaption.of("notification.notify_leave"),
|
TranslatableCaption.of("notification.notify_leave"),
|
||||||
Template.of("player", player.getName()),
|
Template.of("player", player.getName()),
|
||||||
Template.of("plot", plot.getId().toString())
|
Template.of("plot", plot.getId().toString())
|
||||||
|
Loading…
Reference in New Issue
Block a user