Skip to content

Opening servers.dat. #186

@taitep

Description

@taitep

I want to try adding some servers to the list using python, and seems this library would work. Testing it out does not go so well tho. I opened the .minecraft folder in a terminal, and in the python shell wrote the following:

>>> from nbt import nbt
>>> nbtfile = nbt.NBTFile('./servers.dat')

I get this error:
gzip.BadGzipFile: Not a gzipped file (b'\n\x00')
How do i fix this? Do i need to GZip it first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions