mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 20:56:45 +01:00
Fix added_list and denied_list placeholders
This commit is contained in:
parent
019da4d2f4
commit
ce23c153ee
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user