This Post is no longer relevant. Please do not follow the instructions here.
Our 8yo wanted a local server on his laptop today so I grabbed the latest 1.7.9 server exe from the Minecraft site and ran it in its own directory. It created the usual files and gave a GUI-style interface with no obvious console like the raw Java version. Fionn then asked me to make him an Op so he could change things. And it was all downhill from there.
The standard ops.txt was missing but there was an ops.json containing just two square brackets. No amount of messing with creating an ops.txt or putting his username inside the brackets of the json file worked. Over an hour of googling finally got me close. In the recent versions of Minecraft, they have moved to using JSON instead of .txt for config files and they are rolling out the idea of UUIDs so that you can easily change your username. Both are reasonable changes but implemented terribly in this case. Unless the format of your json file in 100% correct, it doesn’t throw an error, it just deletes it!
So after more than 10 attempts, this is what you need:
-
Find your UUID. Note that several sites claim to generate this for you but they are missing the dashes in the UUID. The one that worked for me was this one. Enter your username and get something like 54d61e19-71cc-477d-8215-8a11c41f5211 back.
-
Edit ops.json in a text editor and replace the contents as follows:
[
{
"uuid": "54d61e19-71cc-477d-8215-8a11c41f5211",
"name": "bobloblaw",
"level": 4
}
]
- If you need more than one Op, do it like so.
[
{
"uuid": "54d61e19-71cc-477d-8215-8a11c41f5211",
"name": "bobloblaw",
"level": 4
},
{
"uuid": "44d61e69-6166-444d-8665-6a11567f5211",
"name": "mrsmines",
"level": 4
}
]
That should be all you need. Leave a comment if any problems with it.
This Post is no longer relevant. Please do not follow the instructions here.