Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Top placeholders #5073

Closed
ElMoha943 opened this issue Jul 15, 2021 · 4 comments · Fixed by #6757
Closed

Suggestion: Top placeholders #5073

ElMoha943 opened this issue Jul 15, 2021 · 4 comments · Fixed by #6757
Labels
Milestone

Comments

@ElMoha943
Copy link

ElMoha943 commented Jul 15, 2021

I would like some new placeholders to display the top residents, townblocks and bank money of towns/nations.

I know there are placeholders for individual values like %townyadvanced_town_balance% for money, but i would like something like %townyadvanced_top_town_balance_{n}% where {n} would be number in top (1 being the best one).

I struggled a lot with tons of 3rd party plugins to try making this but i just cant, because most plugins are designed for per player values and not whole townys.

EDIT: like the /t list by command but in a placeholder format to use in holographic displays, chat messages, etc.

@LlmDl LlmDl added the Label-Placeholders Tickets related to the PlaceholderAPI. label Jul 15, 2021
@BlackBeltPanda
Copy link

Would also love to see this. I tried a combination of AJLeaderboards and the ParseOther placeholder, but it doesn't return the town name if the player is offline (and then it crashes the server lol).

@Tylwen
Copy link

Tylwen commented Dec 19, 2021

It would take a % townyadvanced_town_balance_unformated% placeholder where there is no $, just the pure value
same for nation

@Romvnly-Gaming
Copy link

Sorry to be that guy that revives dead issues, but I think this needs to be done. It's a good use.

Just a suggestion though, I want to just bring attention to this issue.

@PuppyNomNom
Copy link

I would also love to see this. <3

@LlmDl LlmDl added this to the 0.99.2.0 milestone Jun 14, 2023
LlmDl added a commit that referenced this issue Jun 14, 2023
  - Use paper's isWaxed API for signs, courtesy of Warrior with
PR #6744.
  - Add Town leaderboard PAPI Placeholders.
    - Closes #5073.
  - New Placeholders:
    - %townyadvanced_top_town_balance_n% - (Replace n with a number)
Displays the nth Town by money in the town bank.
    - %townyadvanced_top_town_residents_n% - (Replace n with a number)
Displays the nth Town by number of residents.
    - %townyadvanced_top_town_land_n% - (Replace n with a number)
Displays the nth Town by number of townblocks claimed.
  - New Config Option:
filters_colour_chat.papi_leaderboard_formatting.format"
    - Default: "%s - %s",
    - How the %townyadvanced_top_....% placeholders will appear, first
%s being the town name, with the second being the balance, resident
count or town size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants