Skip to content

Doesn't remember changes to the Server File #3

@keronian

Description

@keronian

If you change the server file and exit the program, it looks like it's saving that change to spigotgui.settings, but when you re-open the program it's reset to server.jar

I looked at your code, I think it's because you're saving the actual File object in the Settings object rather than the path of the file. I don't think input.readObject is going to just automatically deserialize the way you seem to expect it to.

I think if you save the path as a separate string and just.... initialize the File based on the string you'll probably be fine.

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