[SPIGOT-3456] API: New BlockCommandPreProcessEvent to run when a Command Block runs a command Created: 25/Jul/17 Updated: 06/Sep/17 Resolved: 28/Jul/17 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Zedadias Wick | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | API, Command_block, EventHandler, Events | ||
| Description |
|
It is currently not possible to monitor command blocks running commands via the Spigot API. I propose a new block event called BlockCommandPreprocessEvent to mimic the PlayerCommandPreprocessEvent and ServerCommandPreprocessEvent, allowing for monitoring commands being run by command blocks for debugging command block based maps or other command block systems. |
| Comments |
| Comment by Zedadias Wick [ 06/Sep/17 ] |
|
Thank you for this. For anyone else who comes looking for how to handle Command Block commands: ServerCommandEvent now supports BlockCommandSender. |