1. Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here

FTB Utils keeps removing config section of ranks.json?

Discussion in 'General FTB chat' started by AylaAsperger, Apr 23, 2018.

  1. AylaAsperger

    AylaAsperger New Member

    Hello,

    I have a very simple setup of ranks.json, but each and every time my "config" sections are removed, can anyone please help me locate the error in my file? The JSON validator says it is valid so I don't know where to look!

    I made it like this:

    Code:
    {
        "default_ranks": {
            "player": "player",
            "op": "op"
        },
        "ranks": {
            "player": {
                "parent": "builtin_player",
                "syntax": "<&1$name&r> ",
                "permissions": {
                    "ftbu.back.infinite": true,
                    "ftbu.homes.cross_dim": true,
                    "command.ftb.fly": true
                },
                "config": {
                    "ftbu.chunkloader.max_chunks": 16,
                    "ftbu.claims.max_chunks": 1024,
                    "ftbu.homes.max": 64
                }
            },
            "op": {
                "parent": "builtin_op",
                "syntax": "<&4$name&r> ",
                "permissions": {
                    "*": true
                },
                "config": {
                    "ftbu.chunkloader.max_chunks": 64,
                    "ftbu.claims.max_chunks": 4096,
                    "ftbu.homes.max": 256
                }
            }
        }
    }
    And when I load it it turns into this:

    Code:
    {
        "default_ranks": {
            "player": "player",
            "op": "op"
        },
        "ranks": {
            "player": {
                "parent": "builtin_player",
                "syntax": "<&1$name&r> ",
                "permissions": {
                    "ftbu.back.infinite": true,
                    "ftbu.homes.cross_dim": true,
                    "command.ftb.fly": true
                }
            },
            "op": {
                "parent": "builtin_op",
                "syntax": "<&4$name&r> ",
                "permissions": {
                    "*": true
                }
            }
        }
    }
    The permissions do seem to work, so now I just need to figure out how to make the rest work! Help is much appreciated, thank you very much!
     
  2. grandrolf

    grandrolf Popular Member Trusted User

    Are you editing the file while the server is running?

    If yes - don't do that - stop the server - edit and save - then start again.
     
  3. AylaAsperger

    AylaAsperger New Member

    No, I started it up and it took away that section anyway.
     
  4. AylaAsperger

    AylaAsperger New Member

    Ok, so I found the problem. In 1.12.2 those perms belong inside permissions rather then in config. This (below) is what I have now, and it actually works! Also, if you edit ranks.json offline, upload it, and then do ftb reload on your server or console, then it also works perfectly fine. No need to reload for that!

    Code:
    {
        "default_ranks": {
            "player": "player",
            "op": "op"
        },
        "ranks": {
            "player": {
                "parent": "builtin_player",
                "syntax": "<&1$name&r> ",
                "permissions": {
                    "ftbutilities.back.infinite": true,
                    "ftbutilities.homes.cross_dim": true,
                    "command.ftb.fly": true,
                    "ftbutilities.chunkloader.max_chunks": 16,
                    "ftbutilities.claims.max_chunks": 1024,
                    "ftbutilities.homes.max": 64
                }
            },
            "op": {
                "parent": "builtin_op",
                "syntax": "<&4$name&r> ",
                "permissions": {
                    "*": true,
                    "ftbutilities.chunkloader.max_chunks": 64,
                    "ftbutilities.claims.max_chunks": 4096,
                    "ftbutilities.homes.max": 256
                }
            }
        }
    }
     

Share This Page