Commands not working after reload
SeraphJACK opened this issue ยท 1 comments
WorldEdit Version
7.2.5
Platform Version
forge-1.16.5-36.1.24
Bug Description
When /reload
executes, the CommandDispatcher will be reset, and World Edit needs to register all the commands again to continue functioning. In the current version, WorldEdit won't do that, and therefore /reload
leads to //xxx
commands stop working.
Quoted from Forge net.minecraftforge.event.RegisterCommandsEvent
Javadoc:
Commands are rebuilt whenever DataPackRegistries is recreated. You can use this event to register your commands whenever the Commands class in constructed. The event is fired on the MinecraftForge.EVENT_BUS
Expected Behavior
Commands should be registered by subscribing net.minecraftforge.event.RegisterCommandsEvent
.
Reproduction Steps
- Start a Forge server with World Edit
//xxx
commands working properly- Execute
/reload
//xxx
commands disappear
Anything Else?
Nope.