Posted January 21, 20214 yr Hello. I want to register a command class. This is how I did it and doesn't work. private static final CommandDispatcher<CommandSource> dispatcher = new CommandDispatcher<>(); @SubscribeEvent public static void serverStarting(FMLServerStartingEvent event) { ConfigCommand.register(dispatcher); } What is the right way to register the command?
January 22, 20214 yr Author 15 hours ago, diesieben07 said: Of course Minecraft won't know about any commands you register to this custom dispatcher. How can I get Minecraft's dispatcher?
January 22, 20214 yr Author 3 hours ago, diesieben07 said: Use RegisterCommandsEvent. Oh that's what I need. Now it worked & thanks again!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.