craftbukkit v.298 deletes commented out lines from server.properties

Discussion in 'Bukkit Help' started by hyperch, Feb 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    hyperch

    I just downloaded the newest craftbukkit version 298 and I had to find out, that it alters the server.properties file.

    It does re-arrange entries and removes commented out entries. I do not wish craftbukkit to alter my server.properties file.
     
  2. Offline

    Selbram

    Moved to correct forum.

    Also, it does not do anything to your server.properties file.
     
  3. Offline

    hyperch

    So w
    It does, I just tested it.

    Moved plugins folders from plugins to plugins_test

    Added my actual server.properties files (with a lot of commets)

    Restarted Minecraft....

    All comments are gone
     
  4. Offline

    mughi

    post your original server.properties, your current server.properties, a list of plugins you use, and the command you use to start the server.

    i just tested this on mine and comments stayed put. (i'd post, but they were offensive :) ) cb#286

    my guess is you have a wrapper or update plugin
    EDIT: if you moved all plugins out, then it probably isn't a plugin.
    --- merged: Feb 10, 2011 4:19 PM ---
    my guess is he's either running a wrapper, or one of the setup scripts
     
  5. Offline

    Selbram

    Please pastebin.com your server.properties file before and after and the exact commands you use to start craftbukkit.

    My original statement is still true. Craftbukkit DOES NOT modify your server.properties file. That was one of the things we wanted to get away from in the hmod days.
     
  6. Offline

    hyperch

    what wrapper? what setup script? I didn't change anything on the server for a long time except updating plugins (for test resons plugin folder renamed) and craftbukkit. With v.298 it happens... with earlier versions it doesn't.
     
  7. Offline

    mughi

    well.. strangely enough, he is correct. v298 stripped comments.

    will post original/current in a moment.
     
  8. Offline

    hyperch

    original server.propertiers

    Code:
    #Minecraft Properties File
    #Thu Nov 25 20:38:20 UTC 2010
    #level-name=world1
    #level-name=world2
    #level-name=/tmp/ramdisk/world2
    level-name=/tmp/ramdisk/world1
    hellworld=false
    spawn-monsters=true
    online-mode=true
    spawn-animals=true
    max-players=40
    server-ip=
    pvp=true
    server-port=25565
    
    modified server.properties

    Code:
    #Minecraft server properties
    #Thu Feb 10 15:56:46 UTC 2011
    level-name=/tmp/ramdisk/world1
    hellworld=false
    spawn-monsters=true
    online-mode=true
    spawn-animals=true
    max-players=40
    server-ip=
    pvp=true
    server-port=25565
    spawn-protection=16
    
    Also the date gets changed to last start of the server now... this didn't happen before.

    And you can see that also the order of the entries gets rearraned.
     
  9. Offline

    mughi

    ok.. i think i found the issue


    it only deletes them ONCE, when it adds spawn-protection=16

    after that, everything stays in
     
  10. Offline

    hyperch

    Yes, that's the case.... but adding spawn-protection shouldn't delete the commented out parts and it shouldn't re-arrange the server.properties.
     
  11. Offline

    mughi

    it actually did NOT rearrange the contents. and it only removed comments which don't do anything.

    That said, it really shouldn't even be doing that.

    For me, it looked like the comments stayed in after it was allowed to add that line. Although if you take the line back out, it will probably try to 'fix' it again.

    EDIT: blargh.. reading comprehension fail. I pretty much just restated your last post. At least we agree :)
     
  12. Offline

    Selbram

    Hmm, please report this as a bug and I will "discuss" this with the devs to see what happened. You are right, it should not remove anything from the file even if it is adding another line option. And that should be in a separate file as well... grrr...
     
  13. Offline

    mughi

    reporting....
     
  14. Offline

    Selbram

    Just verified what was already stated. It wills trip everything when it writes the spawn-protection line the first time. After that all comments stay. Still needs to be fixed. :)
     
  15. Offline

    mughi

  16. Offline

    hyperch

    nice report *thumbs up*

    This can be closed then.
     
Thread Status:
Not open for further replies.

Share This Page