RedProtect Anti-Grief

RedProtect Anti-Grief

73.3k Downloads

[Suggestion] Region list placeholder

chelminski opened this issue · 4 comments

commented

Please add a placeholder to the Placeholderapi that displays the list of player's regions.
I would like to display this information as a hologram. E.g.

"Regions you own: %redprotect_player_region_list%" --> "Regions you own: homes, farm, test"

I don't want to give players access to the command /rp list.
I don't want to complicate the server more for new players, so I thought of displaying information about limits and current areas on a hologram.

Examples of new placeholders:

  • %redprotect_player_region_list% - Shows a list of the player's all regions
  • %redprotect_player_region_list_overworld% - Shows a list of the player's overworld regions
  • %redprotect_player_region_list_nether% - Shows a list of the player's nether regions
  • %redprotect_player_region_list_the_end% - Shows a list of the player's end regions

You can also break it down by permissions.

  • %redprotect_player_region_list_member%
  • %redprotect_player_region_list_admin%
  • %redprotect_player_region_list_leader%

Let me know what you think about it ;)

commented

Redprotect has some placeholders that are hard to find on the placeholderAPI site sadly not mentioned on the wiki..

%redprotect_player_in_region%
%redprotect_player_used_claims%
%redprotect_player_used_blocks%
%redprotect_player_total_claims%
%redprotect_player_total_blocks%
%redprotect_region_flag_value_<flag name>%

fun fact: the placeholder %redprotect_player_in_region%
has a confusing name because it turns back the name of the region your currently in. from the name if the placeholder you would aspect to get a number of players inside current region.

commented

The PAPI list is complete on wiki: https://wiki.placeholderapi.com/users/placeholder-list/#redprotect

Btw, good suggestion and maybe i add as i having some time with minecraft again.

commented

Added on latest dev builds and the PlaceholderAPI owner already updated on PAPI page: https://wiki.placeholderapi.com/users/placeholder-list/#redprotect
and more info about placeholders added on wiki: https://github.com/FabioZumbi12/RedProtect/wiki/PlaceholderAPI-Placeholders

commented

%redprotect_player_region_names_leader%
@chelminski this looks like what you are needing :-)