PermissionsEx

PermissionsEx

14M Downloads

PEX 2.0 Wrong rank displayed

xorinzor opened this issue ยท 1 comments

commented

So fairly inconsistent and often fixed using /pex reload, the wrong rank will be displayed.

This has happened so far for our Moderator and Admin rank, where it will show Guest, even though the permissions of the actual rank are still correct.

I have not noticed a pattern and am thus unable to replicate this issue, it seems to happen at random, although most common after a server restart on 1st join. (And the issue started happening after adding the rank-ladder)

This is my permissions file:

{
    "subjects": {
        "default": {
            "default": [
                {
                    "contexts": {
                        "localip": "127.0.0.1"
                    },
                    "permissions-default": 1
                }
            ],
            "user": [
                {
                    "parents": [
                        "group:Guest"
                    ]
                }
            ]
        },
        "user": {
            "669176f5-6528-4729-a18c-8c675209e82e": [
                {
                    "parents": [
                        "group:Admin"
                    ],
                    "options": {
                        "name": "xorinzor"
                    }
                }
            ]
        },
        "group": {
            "Guest": [
                {
                    "permissions-default": 0,
                    "permissions": {
                        //Imagine some permissions here
                    },
                    "options": {
                        "prefix": "&8[&7Guest&8]"
                    }
                }
            ],
            "Member": [
                {
                    "permissions-default": 0,
                    "permissions": {
                        //Imagine some permissions here
                    },
                    "options": {
                        "prefix": "[Member]"
                    },
                    "parents": [
                        "group:Guest"
                    ]
                }
            ],
            "Builder": [
                {
                    "permissions-default": 0,
                    "options": {
                        "prefix": "[Builder]"
                    },
                    "parents": [
                        "group:Member"
                    ]
                }
            ],
            "Moderator": [
                {
                    "permissions-default": 0,
                    "permissions": {
                        //Imagine some permissions here
                    },
                    "options": {
                        "prefix": "[Moderator]"
                    },
                    "parents": [
                        "group:Builder"
                    ]
                }
            ],
            "SeniorModerator": [
                {
                    "permissions-default": 0,
                    "options": {
                        "prefix": "[SeniorMod]"
                    },
                    "parents": [
                        "group:Moderator"
                    ]
                }
            ],
            "Admin": [
                {
                    "permissions-default": 1,
                    "permissions": {
                        //Imagine some permissions here
                    },
                    "options": {
                        "prefix": "[Admin]"
                    },
                    "parents": [
                        "group:SeniorModerator"
                    ]
                }
            ]
        }
    },
    "schema-version": 4,
    "rank-ladders": {
        "default": [
            "group:Guest",
            "group:Member",
        ],
        "moderation": [
            "group:Builder",
            "group:Moderator",
            "group:SeniorModerator",
            "group:Admin"
        ]
    },
    "context-inheritance": {}
}
commented

Unfortunately PermissionsEx is currently unmaintained and no further updates are planned. Because of this, all pull requests are being closed. If you are looking for an actively maintained permissions plugin, take a look at LuckPerms. It is compatible with major server platforms and can import data from PEX.