Description
This project is freaking awesome! I've been hunting for something that did exactly this - and got lucky on a google search that led me here.
I have been hunting for a way to run Spigot commands within functions and /execute. This project lets me do exactly that - because commands registered in this way are accessible to those vanilla mechanics.
However - though I can run my commands with /execute, the context of the command returned via the CommandExecutor is still the original sender of the command - not the "as" entity.
For example, i'd like to be able to do:
/execute as @e[type=chicken,limit=1] run myplugincommand
And I should be able to somehow get the chicken entity in my handler for the command. Spigot prior to 1.12.2 used to do this via the ProxiedCommandSender - perhaps it would be possible to make use of this too?
Would like your thoughts on this - I'm inclined to hook this up myself and submit a pull request but it would help to have your input.