Posted November 23, 20195 yr @SubscribeEvent public void onServerStarting(FMLServerStartingEvent event) { // event.getServer().getCommandManager().getDispatcher().register(Commands.literal CommandDispatcher dispatcher = event.getServer().getCommandManager().getDispatcher(); dispatcher.register(Commands.literal("import") .then(Commands.argument("code", StringArgumentType.string()) .executes(ctx -> { Currently, when joining a server it loads this command. How would I be able to also make it load when joining multiplayer servers? (Like what event is it) Edited November 23, 20195 yr by Owen1212055
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.