mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 12:25:46 +01:00
Rename placeholders matching more appropriately
This commit is contained in:
parent
bf20b0dd79
commit
7f01f2d716
@ -76,7 +76,7 @@ public final class PlaceholderRegistry {
|
||||
this.registerPlaceholder(new PlotFlagPlaceholder(flag, true));
|
||||
this.registerPlaceholder(new PlotFlagPlaceholder(flag, false));
|
||||
});
|
||||
this.createPlaceholder("currentplot_world", player -> player.getLocation().getWorldName());
|
||||
this.createPlaceholder("world_name", player -> player.getLocation().getWorldName());
|
||||
this.createPlaceholder("has_plot", player -> player.getPlotCount() > 0 ? "true" : "false");
|
||||
this.createPlaceholder("allowed_plot_count", (player) -> {
|
||||
if (player.getAllowedPlots() >= Integer.MAX_VALUE) { // Beautifies cases with '*' permission
|
||||
@ -101,7 +101,6 @@ public final class PlaceholderRegistry {
|
||||
return PlayerManager.getName(plotOwner, false);
|
||||
} catch (final Exception ignored) {
|
||||
}
|
||||
|
||||
return String.valueOf(TranslatableCaption.of("info.unknown"));
|
||||
});
|
||||
this.createPlaceholder("currentplot_members", (player, plot) -> {
|
||||
@ -155,7 +154,7 @@ public final class PlaceholderRegistry {
|
||||
sdf.setTimeZone(TimeZone.getTimeZone(Settings.Timeformat.TIME_ZONE));
|
||||
return sdf.format(creationDate);
|
||||
});
|
||||
this.createPlaceholder("has_build_rights", (player, plot) ->
|
||||
this.createPlaceholder("currentplot_can_build", (player, plot) ->
|
||||
plot.isAdded(player.getUUID()) ? "true" : "false");
|
||||
this.createPlaceholder("currentplot_x", (player, plot) -> Integer.toString(plot.getId().getX()));
|
||||
this.createPlaceholder("currentplot_y", (player, plot) -> Integer.toString(plot.getId().getY()));
|
||||
|
Loading…
Reference in New Issue
Block a user