Ajneb97 / Codex

https://www.spigotmc.org/resources/codex-rpg-discoveries-1-8-1-17.90371/
MIT License
8 stars 11 forks source link

[Feature request] Resolve %name% when executing commands #4

Open jortvanleenen opened 1 year ago

jortvanleenen commented 1 year ago

Hi,

Could you add %name% resolving to command execution, just like you are currently doing for %player%? E.g. I have a discovery with attribute: 'name: "&a&ltest"'. I hope that %name% would then result in the unformatted text 'test'. Thanks in advance!

Ajneb97 commented 1 year ago

What do you want to do exactly, can you give me an example?

jortvanleenen commented 1 year ago

An example would be 'warp %name% %player%', or '%player% add permission \<some-permissions>.%name%' (pseudo example)

jortvanleenen commented 1 year ago

Of course, it is very well possible to hardcode the correct value for the command, but I basically need to add the same commands to every discovery and inventory item and would like it to dynamically update based on the name, so it would make the process less cumbersome and prone to errors :)