Paper
Paper copied to clipboard
Expose CommandSender for command blocks
@jpenilla
only issue with that PR is some weird stuff could happen if you use the sender after the command block is removed might want to add better exceptions/checks
We don't have checks for this on entities right? You can hold a reference to an entity that no longer exists on the world but it can be used as a CommandSender.
also when a command block executes commands it does some extra logic, may or may not want to call into that or have a separate method that does, idk
I think that should be a separate method. Basically a method that just directly runs the command execution logic directly. Not adding that here.