mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 20:56:45 +01:00
This commit is contained in:
parent
f14121e99c
commit
410879d154
@ -109,6 +109,24 @@ public final class PlaceholderRegistry {
|
||||
}
|
||||
return String.valueOf(plot.getDenied().size());
|
||||
});
|
||||
this.createPlaceholder("currentplot_members_trusted_list", (player, plot) -> {
|
||||
if (plot.getTrusted() == null) {
|
||||
return "0";
|
||||
}
|
||||
return String.valueOf(PlayerManager.getPlayerList(plot.getTrusted()));
|
||||
});
|
||||
this.createPlaceholder("currentplot_members_added_list", (player, plot) -> {
|
||||
if (plot.getMembers() == null) {
|
||||
return "0";
|
||||
}
|
||||
return String.valueOf(PlayerManager.getPlayerList(plot.getMembers()));
|
||||
});
|
||||
this.createPlaceholder("currentplot_members_denied_list", (player, plot) -> {
|
||||
if (plot.getDenied() == null) {
|
||||
return "0";
|
||||
}
|
||||
return String.valueOf(PlayerManager.getPlayerList(plot.getDenied()));
|
||||
});
|
||||
this.createPlaceholder("has_build_rights", (player, plot) ->
|
||||
plot.isAdded(player.getUUID()) ? "true" : "false");
|
||||
this.createPlaceholder("currentplot_x", (player, plot) -> Integer.toString(plot.getId().getX()));
|
||||
|
Loading…
Reference in New Issue
Block a user