Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Expose CommandSender for command blocks

Open Machine-Maker opened this issue 3 years ago • 1 comments

Machine-Maker avatar Jul 06 '22 02:07 Machine-Maker

@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.

Machine-Maker avatar Jul 22 '22 00:07 Machine-Maker