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

Placeholder: More placeholders #2188

Open
kristophergeou opened this issue Sep 4, 2023 · 3 comments
Open

Placeholder: More placeholders #2188

kristophergeou opened this issue Sep 4, 2023 · 3 comments
Labels
Type: Enhancement Improvement or modification which is usually a new feature.

Comments

@kristophergeou
Copy link

I' ve seen in suggestions #2180 and #2186 that sadly its not possible to parse for the offline players, which is something crucial for the function of my guis. So i was thinking of list% placeholders

Description

  1. a list placeholder for the island / visited ranks
  2. a list placeholder for the island / visited bans
  3. a list placeholder for the visited island members
  4. a list placeholder for the visitors in your island

all similar to how the %aoneblock_island_members_list% works
Placeholder:

  1. %[gamemode]_island_member_rank_list% - %[gamemode]_island_visted_member_rank_list%
  2. %[gamemode]_island_ban_list% - %[gamemode]_island_visited_ban_list%
  3. %[gamemode]_visited_island_member_list%
  4. %[gamemode]_island_visitor_list%

I've seen that the %aoneblock_island_members_list% includes all the players both offline and online in a list with a separator , i ve used this placeholder with the playerlist expansion of papi and was able to separate the placeholder and get the 1st 2nd 3rd.. names of the island members alone. So if list placeholders exist for the above i think i can do the same with that too.

Note:

  1. For this placeholder lets get that the %aoneblock_island_members_list% returns: Bento,Box,Kris in which Box = Owner Kris = Member Bento = Admin so the list placeholder would be Admin,Owner,Member idk tho if its possible to retrieve such data for the list placeholder. Similar thing for the visited islands too
@tastybento
Copy link
Member

I've seen in suggestions 2180 and 2186 that sadly its not possible to parse for the offline players

Just to clarify, when parsing, the player referenced is the player who is viewing the result of the placeholder. So long as that player is online, they can obtain every player in the team list and their rank, even if those particular players are offline at the time.

So, this request for lists should already be satisfied by the placeholders provided in #2180 except that instead of a list, they are provided separately.

I suggest you try the placeholders I created and if you hit a specific issue, then let me know why and the setup.

@kristophergeou
Copy link
Author

oh ye all of them work perfectly fine Thanks for that it helps me a lot. Idk if i am mistaken but it seems that there isnt a placeholder for the names of the visitors?
something like %[gamemode]_island_visitor_name_1%...50

@tastybento
Copy link
Member

Ah, interesting. No there are no placeholders for visitors. So, this could obviously change quite a bit as people come and go. I'll look at it over the weekend.

@tastybento tastybento added the Type: Enhancement Improvement or modification which is usually a new feature. label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improvement or modification which is usually a new feature.
Projects
Development

No branches or pull requests

2 participants