mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +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()) {
|
if (plot.getMembers().isEmpty()) {
|
||||||
return legacyComponent(TranslatableCaption.of("info.none"), player);
|
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) -> {
|
this.createPlaceholder("currentplot_members_denied_list", (player, plot) -> {
|
||||||
if (plot.getDenied().isEmpty()) {
|
if (plot.getDenied().isEmpty()) {
|
||||||
return legacyComponent(TranslatableCaption.of("info.none"), player);
|
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) -> {
|
this.createPlaceholder("currentplot_creationdate", (player, plot) -> {
|
||||||
if (plot.getTimestamp() == 0) {
|
if (plot.getTimestamp() == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user