Delayed command registration fails in 1.19.1+
Closed this issue · 4 comments
Expected behavior
Commands from WorldGuard to work as they use to in 1.19.
Observed/Actual behavior
Commands from WorldGuard do not work in 1.19.1+.
Steps/models to reproduce
- Install WorldGuard & WorldEdit to Paper-113 plugin folder.
- Set yourself as OP
- Try to use commands from WorldGuard such as
/god
. - Command is unknown.
Plugin and Datapack List
WorldEdit dev 6234
WorldGuard dev 2204
Paper version
Paper version git-Paper-113 (MC: 1.19.2)
Other
This is just an initial guess, but this is probably because the CommandMap is no longer used for executing commands, the brigadier dispatcher is. And they are only synced when CraftServer#syncCommands() is called. which is once after plugin loading, and during a reload.
This change was made (purposefully, I think) by spigot for 1.19.1
I can confirm this bug with LibertyBans' command aliases. Command registration fails to have effect after the startup process.
Command unregistration also fails. Unregistering a command has no effect, either.
Fixed by #8235