mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-11 14:23:14 +01:00
Address feedback
Signed-off-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
parent
5de2744733
commit
277081231d
@ -200,8 +200,9 @@ public final class PlaceholderRegistry {
|
||||
this.createPlaceholder("currentplot_biome", (player, plot) -> plot.getBiomeSynchronous().toString());
|
||||
this.createPlaceholder("currentplot_size", (player, plot) -> String.valueOf(plot.getConnectedPlots().size()));
|
||||
this.createPlaceholder("total_grants", player -> {
|
||||
final MetaDataAccess<Integer> metaDataAccess = player.accessPersistentMetaData(PlayerMetaDataKeys.PERSISTENT_GRANTED_PLOTS);
|
||||
return Integer.toString(metaDataAccess.get().orElse(0));
|
||||
try (final MetaDataAccess<Integer> metaDataAccess = player.accessPersistentMetaData(PlayerMetaDataKeys.PERSISTENT_GRANTED_PLOTS)) {
|
||||
return Integer.toString(metaDataAccess.get().orElse(0));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user