Fix added_list and denied_list placeholders

This commit is contained in:
Hannes Greule 2020-12-28 12:15:34 +01:00
parent 019da4d2f4
commit ce23c153ee

View File

@ -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) {