Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Delayed command registration fails in 1.19.1+

Open mibby opened this issue 3 years ago • 3 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

https://builds.enginehub.org/

Paper version

Paper version git-Paper-113 (MC: 1.19.2)

Other

RE: https://github.com/EngineHub/WorldGuard/issues/1943

mibby avatar Aug 07 '22 06:08 mibby

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

Machine-Maker avatar Aug 07 '22 06:08 Machine-Maker

@wizjany / @me4502 Ping for notice.

mibby avatar Aug 07 '22 06:08 mibby

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.

A248 avatar Aug 07 '22 15:08 A248