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

Relational Scripts #66

Open
Gabo6480 opened this issue Jul 19, 2022 · 0 comments
Open

Relational Scripts #66

Gabo6480 opened this issue Jul 19, 2022 · 0 comments

Comments

@Gabo6480
Copy link

Just to ask for the feature of having a javascript placeholder variant that is compatible with relational placeholders.
I imagine the placeholder being something like this:
%rel_javascript_<one/two>_<placeholder>_[args...]
The <one/two> parameter allows us to decide on who's context we should evaluate the [args] to begin with.
Inside of the script we can then use:
PlaceholderAPI.static.setPlaceholders(BukkitPlayer/BukkitPlayerOne/BukkitPlayerTwo, "%placeholder%")
To have access to any placeholder in the context of either players. BukkitPlayer being the player selected in the <one/two> parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant