From ce23c153ee93e0ea1d049df30b8ace4178b81fee Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Mon, 28 Dec 2020 12:15:34 +0100 Subject: [PATCH] Fix added_list and denied_list placeholders --- .../core/util/placeholders/PlaceholderRegistry.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java b/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java index a90dbb045..cc2a87c2d 100644 --- a/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java +++ b/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java @@ -142,13 +142,15 @@ public final class PlaceholderRegistry { if (plot.getMembers().isEmpty()) { return legacyComponent(TranslatableCaption.of("info.none"), player); } - return String.valueOf(PlayerManager.getPlayerList(plot.getMembers(), player)); + return PlotSquared.platform().toLegacyPlatformString( + PlayerManager.getPlayerList(plot.getMembers(), player)); }); this.createPlaceholder("currentplot_members_denied_list", (player, plot) -> { if (plot.getDenied().isEmpty()) { return legacyComponent(TranslatableCaption.of("info.none"), player); } - return String.valueOf(PlayerManager.getPlayerList(plot.getDenied(), player)); + return PlotSquared.platform().toLegacyPlatformString( + PlayerManager.getPlayerList(plot.getDenied(), player)); }); this.createPlaceholder("currentplot_creationdate", (player, plot) -> { if (plot.getTimestamp() == 0) {