Posted February 14, 201411 yr Hi guys I am working on a server auto join mod, but i cant really figure out how i can open a connection to a minecraft server in 1.7.2. Can someone help me? Thanks
February 14, 201411 yr Author Btw , I have tryed to use FMLClientHandler.connectToServerAtStartup(..., ...) but I can't get it to work
February 15, 201411 yr Author yeah, i think so. i used this @Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION) public class ExampleMod { public static final String MODID = "testmod"; public static final String VERSION = "1.0"; @EventHandler public void init(FMLInitializationEvent event){ FMLClientHandler.instance().connectToServerAtStartup("144.76.56.55", 25624); } }
February 15, 201411 yr Author I found out that i only connect to the server, does somebody know how you can auto join a server when minecraft has loaded?
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.