Online-mode boolean sets itself back to true on every Bukkit startup? Here’s a solution.

Hi there,

During this week-end, I had the idea of going again into setting up a multiplayer Minecraft server with Bukkit.
So, I download the latest CraftBukkit build, everything is all right, I write my run.bat script to launch my .jar file and I input Java’s executable path in my PATH environment variable. As usual.
But, because there’s a but, I’ve got a pretty big issue with my server. On every startup, the “online-mode” boolean in the server.properties file came back to “true”! Of course, I haven’t bought the game yet (shame on me, I know), but this parameter allows me to enable or not the user account checking on Minecraft.net, in other words, it allows cracked versions to log in on the server.
I’ve got a solution to this problem, you just have to edit your Batch script which should look like this:

@echo off
java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
PAUSE

… and to change “- o true” into “-o false”, which should give you this final result:

@echo off
java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o false
PAUSE

And that’s all! Restart your Bukkit server and normally the offline mode warning message is displayed, your server is now allowing cracked Minecraft versions! :)

Online-mode warning message on Bukkit

Online-mode warning message on Bukkit

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>