🔑 PermissionsEx v2.0 [API 5]

Just tried with freshly downloaded SpongePEX2.0-snapshot, Forge 1521 and Sponge 750: crash on startup.

I didn’t try on Forge 1524, though.

No crash for me, but the plugin isnt working at all, just throws mass errors.

A clarifying question on “Ranking Ladders”
Am I correct in assuming that a player can be moving up multiple ladders concurrently? So for example, could I be moving up the “rank promotion” ladder, my “city rank” ladder, and some plugin “profession” ladder at the same time?
EDIT: My experimentation seems to show this working, I think.

Is it possible to have players automatically rank up our server rank ladder by time? I saw some code in the documentation about lifetime durations, but I’m not sure I understand how to implement this via the command line syntax. Would this require an extension plugin to implement?
EDIT: It looks like the api is designed to support this but it would have to be a custom implementation. I’m not sure why though, it seems like something a lot of servers would want to have happen.

Along similar lines, I currently have players ranking up a particular tree via a specific item(s) in their inventory. It’s currently an extension plugin to the default Canary permission implementation on our server. Is this something you think would ever be included in PEX? Or should I look at requesting a custom build to support this from our server dev team?
EDIT: Definitely a custom implementation from what I can see.

Thanks for your time.

Can anyone tell me how to completely remove all permissions from new players that join? I’ve already created a default group as the parent and assigned it permissions FALSE. The trouble is, they still have access to some 15+ console commands from PEX, Sponge and Vanilla. I would prefer they not have any of that. Eventually I’ll add back in a few things, but none of the items they are currently getting as part of default. Here is a snapshot of the command list they get when they do a / <tab> to autocomplete the command / (I hope that makes sense.)

EDIT: I figured out how to individually exclude the vanilla commands. They had to be entered individually and specifically. I haven’t had any success guessing at the sponge and PEX ones.

Hi, I was wondering if you could explain more into the parents and inheriting commands portion of this plugin. How is this done and what is the command breakdown

You should have a look at this post. I found it very helpful and it covers adding parents and inheritance.

PEX quick command reference

1 Like

Hi. PEX error: http://pastebin.com/P6y9Xg3n

check that you are using the latest PEX (Jenkins build #93) as Sponge recently updated their Configurate version

Yes

Error. What version of Forge and spongeforge you use?

He uses forge 1552 and Sponge 794, just look at the log. However the server is in offline mode, running it like this isnt a good solution at all.

Edit: nvm, cant read!

looks like this is an issue with exception handling – the Path API throws a different exception than the File API when a file does not exist.

everyone on my server still can op their self’s and thares no op permission set so how can they still do it my pex config is

[spoiler=config]

{
    "subjects": {
        "system": {
            "Trainer": [
                {
                    "contexts": {
                        "srcip": "127.0.0.1"
                    },
                    "permissions-default": 1
                }
            ],
            "default": [
                {
                    "parents": [
                        "group:Trainer"
                    ]
                }
            ],
            "Console": [
                {
                    "options": {
                        "prefix": ""
                    }
                }
            ]
        },
        "group": {
            "Owner": [
                {
                    "permissions-default": 1,
                    "options": {
                        "rank": "0",
                        "rank-ladder": "default",
                        "prefix": "<c n='white'>[<c n='red'>Owner</c>]</c>"
                    }
                }
            ],
            "Trainer": [
                {
                    "permissions": {
                        "tpa.use": 1,
                        "tpa.accept": 1,
                        "home.delete": 1,
                        "home.set": 1,
                        "spawn.use": 1,
                        "home.use": 1,
                        "kits.use.Starter": 1,
                        "kits.list": 1,
                        "dynmap.webchat": 1,
                        "dynmap.webregister": 1,
                        "minecraft.command.help": -1,
                        "tpadeny.use": 1,
                        "kits.use": 1
                    },
                    "options": {
                        "rank": "20",
                        "rank-ladder": "default",
                        "prefix": "<c n='white'>[<c n='green'>Trainer</c>]</c>"
                    },
                    "parents": [
                        "group:Helper"
                    ]
                }
            ],
            "Admin": [
                {
                    "permissions-default": 1,
                    "permissions": {
                        "minecraft.command.stop": -1
                    },
                    "options": {
                        "rank": "1",
                        "rank-ladder": "default",
                        "prefix": "<c n='white'>[<c n='dark_red'>Admin</c>]</c>"
                    }
                }
            ],
            "Helper": [
                {
                    "options": {
                        "rank": "10",
                        "rank-ladder": "default"
                    },
                    "parents": [
                        "group:Mod"
                    ]
                }
            ],
            "Mod": [
                {
                    "options": {
                        "rank": "5",
                        "rank-ladder": "default"
                    },
                    "parents": [
                        "group:Admin"
                    ]
                }
            ]
        },
        "user": {
            "3c13ac72-420c-4fe2-95c6-05943960eaaf": [
                {
                    "options": {
                        "name": "LisbethTheCub"
                    },
                    "parents": [
                        "group:Owner"
                    ]
                }
            ],
            "406e0466-709a-4ac5-8da1-e802474769ec": [
                {
                    "options": {
                        "name": "ZaexTheKitten"
                    },
                    "parents": [
                        "group:Owner"
                    ]
                }
            ],
            "8f10cfde-d8c7-4b48-b0b7-ceca4a497dfa": [
                {
                    "options": {
                        "name": "TeethOfEmultion"
                    },
                    "parents": [
                        "group:Admin"
                    ]
                }
            ],
            "51f84cb3-e686-4752-84b8-69b5b66958fb": [
                {
                    "options": {
                        "name": "Blackweavile"
                    },
                    "parents": [
                        "group:Admin"
                    ]
                }
            ],
            "6bd756b8-849f-4d3a-b3f9-be37cc038e03": [
                {
                    "options": {
                        "name": "BulbaTheSaur"
                    },
                    "parents": [
                        "group:Admin"
                    ]
                }
            ]
        }
    },
    "schema-version": 4
}

[/spoiler]

witch i copied off someone other post
sorry im used to the bukkit pex witch to me this is completely new

Please don’t post long files like this in a Forum message, it really clogs up the thread.
The preferred method is to use a hosting site like Pastebin or similar, and post a link.
The same applies to log files, long code examples, etc.
EDIT: I edited your post to at least put the config in spoilertags.

Your inheritance is reversed – adding a group (group A) as a parent of another (group B) would give group B all the permissions of group A – essentially an include.

i have fixed the issue thanks this dosent seem as hard now that i got some sleep

Any thoughts on my problem?

If you manually create a empty file permissionsex.conf and start the server, then http://pastebin.com/uwPm0RDR

Caused by: ninja.leaping.permissionsex.exception.PermissionsLoadingException: While loading permissions file from config\permissionsex\permissions.json

After stopping the server the file contains: http://pastebin.com/fMD74bKB

If you manually create a empty file permissions.json and start the server, then http://pastebin.com/7m52X7Wq

There are no errors. PEX will automatically create these files?

After stopping the server the file contains: permissions.json

yeah, that’s a configurate bug. I’ve fixed it in Configurate so eventually it’ll percolate into Sponge.

The server runs without error, but the error when you connect the player: http://pastebin.com/1qvF7QjV
permissions.json http://pastebin.com/7eFttXeU2