Owen1212055 Posted November 23, 2019 Posted November 23, 2019 (edited) @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, 2019 by Owen1212055 Quote
Recommended Posts
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.