mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fix: Add user friendly message for creationdate placeholder
This commit is contained in:
parent
9609990832
commit
c07ac43528
@ -164,7 +164,7 @@ public final class PlaceholderRegistry {
|
|||||||
PlayerManager.getPlayerList(plot.getDenied(), player));
|
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 || !plot.hasOwner()) {
|
||||||
return legacyComponent(TranslatableCaption.of("info.unknown"), player);
|
return legacyComponent(TranslatableCaption.of("info.unknown"), player);
|
||||||
}
|
}
|
||||||
long creationDate = plot.getTimestamp();
|
long creationDate = plot.getTimestamp();
|
||||||
|
Loading…
Reference in New Issue
Block a user