Carbon icon indicating copy to clipboard operation
Carbon copied to clipboard

[Feature] Option to reverse parameters passed to PlaceholderAPI on relational placeholders

Open Kamilkime opened this issue 1 year ago • 0 comments
trafficstars

Proposed Feature Description:

Currently the relational placeholders for PlaceholderAPI are used like this. The sender player is the first parameter, and the receiving player is the second.

However, PlaceholderAPI does not specify which parameter means what. To be honest I've more plugins doing this the opposite way - treating the first parameter as the observer, and the second as the message sender. For example when implementing this we've assumed just that and tested it with a couple other plugin (e.g. TAB).

My proposal would be to add an option, which would allow the user to switch the order of the variables. If possible - maybe even somehow do that per placeholder, which is actually substituted? I think it would be one of the only (or even the only) plugin which would allow such a choice.

Proposed Feature Functionality:

Possibly a config option, allowing the possibility to switch the order of the passed Player variables.

Kamilkime avatar Mar 28 '24 15:03 Kamilkime