FTB Utils keeps removing config section of ranks.json?

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

AylaAsperger

New Member
Jul 29, 2019
4
0
0
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!
 

grandrolf

Global moderator
Team Member
Global Moderator
Trusted User
Aug 29, 2014
2,658
246
133
sweden
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.
 

AylaAsperger

New Member
Jul 29, 2019
4
0
0
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
            }
        }
    }
}