Please sign in to comment.
Handle commandblocks through ServerCommandEvent
Command blocks/minecarts fire a ServerCommandEvent since CraftBukkit 1.12.1. This commit redirects commands in command blocks/minecarts that start with "/runalias" to the event handler that handles commands without a "/runalias" prefix. Effectively, this commit now fires an external BukkitMCConsoleCommandEvent before CommandHelper handles command block/minecart commands. This makes the behaviour of command blocks with and without "/runalias" consistent.
- Loading branch information...
Showing with 5 additions and 8 deletions.