Launch Minecraft from command line – username and password as prefix

You can do this, you just need to circumvent the launcher. In %appdata%\.minecraft\bin (or ~/.minecraft/bin on unixy systems), there is a minecraft.jar file. This is the actual game – the launcher runs this. Invoke it like so: java -Xms512m -Xmx1g -Djava.library.path=natives/ -cp “minecraft.jar;lwjgl.jar;lwjgl_util.jar” net.minecraft.client.Minecraft <username> <sessionID> Set the working directory to .minecraft/bin. To get the … Read more

Java bukkit config file for player homes not allowing teleportation

You might want to check to see if “homesConfig.contains(“Homes.” + user.getName() + )” before you try to use it. I think getting something that the config file doesn’t contain will just return null. Here’s how you could check it if (!homesConfig.contains(“Homes.” + user.getName() + “.world”) || <just copy the first condition but for the different … Read more

.Replace Errors from minecraft

To solve your error, you can do the following: The replace method only accept (charSequence toReplace, charSequence replacement) as parameters. You can easily add your int to be replace on the method, doing the following: int i = 0; String iString = String.valueOf(i); String.valueOf(int i) converts the int i to a String form, making it … Read more