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: %bskyblock_onisland_<player>% #2436

Closed
postyizhan opened this issue Jul 20, 2024 · 3 comments · Fixed by #2454
Closed

Placeholder: %bskyblock_onisland_<player>% #2436

postyizhan opened this issue Jul 20, 2024 · 3 comments · Fixed by #2454
Assignees
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Type: Enhancement Improvement or modification which is usually a new feature.

Comments

@postyizhan
Copy link

Description

If this player is on my island, return true
If not present, return false

Placeholder: %bskyblock_onisland_<player>%

@tastybento tastybento self-assigned this Jul 28, 2024
@tastybento tastybento added the Status: Under investigation Investigating the interest and the feasability of the issue. label Jul 28, 2024
@tastybento
Copy link
Member

I have a few clarifications/questions for you:

  1. What are you using this for? If it's returning true/false, then I assume it's going into some kind of script or program? If so, there may be a better way of doing this than using placeholders
  2. The placeholder will only exist when the player is online - it'll be registered when they join the server, and unregistered when they leave to prevent potentially 1000's of named placeholders taking up memory. Does that work for you?
  3. If you query a player whose not online or with an unknown name, the placeholder returned will be %bskyblock_onisland_<player>% - okay?
  4. As players can have more than one island in the same game mode, it'll reply true if the player is on any of those - okay?

@postyizhan
Copy link
Author

postyizhan commented Jul 28, 2024

Thank you for your reply

  1. Yes, this will make it easier for me to use a scripting language( https://plugins.ptms.ink/function/kether
  2. Sure, I just need to determine the online players
  3. Of course
  4. of course
    I want to create a ban menu that allows players to click on the player's head to prohibit them from entering the island. I just need a way to determine if a player is on my island

@tastybento tastybento added Status: In progress Working on the issue. Type: Enhancement Improvement or modification which is usually a new feature. labels Aug 2, 2024
@tastybento
Copy link
Member

Okay, this is done in the SNAPSHOT.

@tastybento tastybento added Status: Done This issue has been completed or answered. This pull request has been merged. and removed Status: Under investigation Investigating the interest and the feasability of the issue. Status: In progress Working on the issue. labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Type: Enhancement Improvement or modification which is usually a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants