PlaceholderAPI / Javascript-Expansion

Adds javascript placeholders
GNU General Public License v3.0
22 stars 24 forks source link

Relational Scripts #66

Open Gabo6480 opened 2 years ago

Gabo6480 commented 2 years ago

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