Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Sync commands earlier for use in datapacks

Open Machine-Maker opened this issue 4 years ago • 2 comments

Fixes #6441 (kinda)

So it was a simpler fix that I originally thought. blocked because it requires part of #5527 (specifically moving back datapack parsing)

Machine-Maker avatar Aug 24 '21 04:08 Machine-Maker

Just a note that has to be resolved, this is going to break a lot of datapacks as they currently are. Since the /minecraft: command prefix is not a thing in vanilla, they all don't have it. And some plugins (like essentials) override some of those commands. Which means they are going to break.

I think the solution is, that pursuant to a boolean config option, when parsing command functions, when trying to find LiteralCommandNodes, we need to do an additional check if one with the minecraft: prefix exists and prioritize that.

Machine-Maker avatar Oct 05 '21 07:10 Machine-Maker

Do we still want an early fix for this? My brig api will resolve this issue by properly registering commands into the dispatcher.

Owen1212055 avatar May 10 '23 02:05 Owen1212055

Closed due to being handled by brig api.

Owen1212055 avatar Nov 11 '23 20:11 Owen1212055