[Help] PermissionsEX, would like some info and guidance

I am creating a Pixelmon server (4.2.7) with MC version (1.8.9). So far I am understanding PEX but I am still unsure if it is 100% correct. I was using jsonlint.com to check over the PEX, but one error (fixed all the other errors, I have no idea what to do for this error) is appearing and I do not know how to fix it. If someone could assist me on that, I would greatly appreciate it.

Here is the PEX http://pastebin.com/vyZUGbUf

Also, I am using nucleus for the server and was wondering it there was a way to make it so certain ranks can ONLY set certain amount of homes, as well as certain ranks having access to kits. I haven’t really researched into it yet (been busy with school), but will dive into the research soon, though I would love even the slightest info on this!

Finally, I wasnt entirely certain on how to create a new ladder, if I messed up along the lines for the ladders please let me know.

Thank you and I really do appreciate the help :slight_smile:

I can help you with the Nucleus stuff… by pointing you at some docs!

http://nucleuspowered.org/docs/modules/home.html - read the section on limiting the number of homes
http://nucleuspowered.org/docs/modules/kit.html - read the section on per-kit permissions

The docs for Nucleus aren’t complete and will hopefully get better over time, but for what you’re asking, it’s there!

As for your JSON, it says you’re missing a } at the end of the file, then it explains you have a duplicate key. Hopefully you’ll be able to work it out from there, though consider using the PEX commands instead, you’ll avoid errors like this!

I am actually very new to sponge and PEX in general xD

Thank you for the information I really appreciate it mate, for the PEX commands, what do you mean I could avoid errors? :o I am actually very interested to learn :smiley:

He means you should use the commands to alter the PEX files, either in-game or via console.
It’s virtually impossible to mess up the permissions.json file formatting using the commands, and it seems to be almost inevitable that errors get introduced if you do it by hand.

The commands weren’t working for me in game, so I decided to try it by hand and like you said, I ran into errors almost instantly. Thanks for the help, I guess I should find the reason why i cant use commands for Pex instead of trying to do it by hand

The PEX commands are rather strict in structure, and always give the same error message when you screw up.

Something like /pex group admin perm essentialcmds true should work (I was doing similar things with it last night).

Ok, and for the .json file that I edited, what should I do with that? Just remove the plugin and files entirely and re upload them so it generates new files? So far I have this on my json file

{
    "subjects": {
        "default": {
            "default": [
                {
                    "contexts": {
                        "localip": "127.0.0.1"
                    },
                    "permissions-default": 1
                },
                {
                    "permissions": {
                        "foxcommon.command.info": 1
                    }
                }
            ],
            "user": [
                {
                    "parents": [
                        "group:Member"
                    ],
                    "permissions": {
                        "pixelextras.command.evs": 1,
                        "pixelextras.command.ivs": 1,
                        "nucleus.afk.base": 1,
                        "nucleus.back.base": 1,
                        "nucleus.home.base": 1,
                        "nucleus.home.set.base": 1,
                        "nucleus.home.list.base": 1,
                        "nucleus.info.base": 1,
                        "nucleus.kit.base": 1,
                        "nucleus.mail.base": 1,
                        "nucleus.mail.send.base": 1,
                        "nucleus.helpop.base": 1,
                        "nucleus.message.base": 1,
                        "nucleus.message.base": 1,
                        "nucleus.list.base": 1,
                        "nucleus.seen.base": 1,
                        "nucleus.rtp.base": 1,
                        "nucleus.rules.base": 1,
                        "nucleus.itembuy.base": 1,
                        "nucleus.itemsell.base": 1,
                        "nucleus.spawn.base": 1,
                        "nucleus.teleport.tpa.base": 1,
                        "nucleus.teleport.tpaccept.bas": 1,
                        "nucleus.teleport.tpahere.base": 1,
                        "nucleus.teleport.tpdeny.base": 1,
                        "nucleus.teleport.tptoggle.base": 1,
                        "nucleus.warp.base": 1,
                        "nucleus.world.list.base": 1,
                        "nucleus.world.load.base": 1,
                        "nucleus.blockinfo.base": 1,
                        "nucleus.realname.base": 1,
                        "minecraft.command.tell": 1,
                        "minecraft.command.help": 1,
                        "nucleus.warp.list.base": 1,
                        "griefprevention.claim.create": 1,
                        "griefprevention.claim.visualize-claims": 1,
                        "griefprevention.claim.command.abandon": 1,
                        "griefprevention.claim.command.abandon-all": 1,
                        "griefprevention.claim.command.list": 1,
                        "griefprevention.claim.command.info": 1,
                        "griefprevention.claim.command.set-name": 1,
                        "griefprevention.claim.command.transfer": 1,
                        "griefprevention.command.player.ignore": 1,
                        "griefprevention.command.player.unignore": 1,
                        "griefprevention.command.player.list": 1
                }
            }
        ],
        "group": {
            "Owner": [
                {
                    "permissions-default": 1,
                    "parents": [
                        "group:Mod"
                    ]
                }
            ],
            "Member": [
                {
                    "permissions-default": -1,
                    "permissions": {
                        "nucleus.motd.base": 1,
                        "nucleus.motd.login": 1
                    }
                }
            ],
            "Novice": [
                {
                    "parents": [
                        "group:Member"
                    ],
                    "permissions": {
                        "polis.hq.use": 1,
                        "totaleconomy.command.job": 1
                    }
                }
            ],
            "Apprentice": [
                {
                    "parents": [
                        "group:Novice"
                    ],
                    "permissions": {
                    }
                }
            ],
            "Engineer": [
                {
                    "parents": [
                        "group:Apprentice"
                    ],
                    "permissions": {
                    }
                }
            ],
            "Machinist": [
                {
                    "parents": [
                        "group:Engineer"
                        ],
                        "permissions": {
                    }
                }
            ],
            "Aristocrat": [
                {
                    "parents": [
                        "group:Machinist"
                        ],
                        "permissions": {
                            "nucleus.fly.base": 1,
                            "pixelextras.command.pc": 1,
                            "nucleus.hat.base": 1
                    }
                }
            ],
            "Noble": [
                {
                    "parents": [
                        "group:Aristocrat"
                        ],
                        "permissions": {
                            "pixelextras.command.pheal": 1
                    }
                }
            ],
            "Ascendant": [
                {
                    "parents": [
                        "group:Noble"
                        ],
                        "permissions": {
                            "nucleus.repair.base": 1,
                            "nucleus.nick.base": 1,
                            "pixelextras.command.pokecolor": 1
                    }
                }
            ],
            "Ethereal": [
                {
                    "parents": [
                        "group:Ascendant"
                        ],
                        "permissions": {
                            "nucleus.lightning.base": 1,
                            "nucleus.jump.base": 1,
                            "nucleus.thru.base": 1,
                            "nucleus.god.base": 1,
                            "nucleus.speed.base": 1
                    }
                }
            ],
            "RockGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "GroundGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "BugGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "FireGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "PsychicGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "DarkGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "PsychicGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "FightingGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "WaterGL": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "E4": [
                {
                    "parents": [
                        "group:Member"
                        ],
                        "permissions": {
                    }
                }
            ],
            "Champion": [
                {
                    "parents": [
                        "group;Member"
                        ],
                        "permissions": {
                    }
                }  
            ], 
            "Helper": [
                {
                    "parents": [
                        "group:Machinist"
                        ],
                        "permissions": {
                            "nucleus.jail.base": 1,
                            "nucleus.jail.checkjail.base": 1,
                            "nucleus.kick.base": 1,
                            "nucleus.staffchat.base": 1,
                            "nucleus.jail.list.base": 1,
                            "nucleus.warn.base": 1,
                            "nucleus.note.base": 1,
                            "nucleus.checknotes.base": 1,
                            "nucleus.checkmute.base": 1
                    }
                }
            ],
            "Mod": [
                {
                    "parents": [
                        "group:Helper"
                        ],
                        "permissions": {
                            "nucleus.checkban.base": 1,
                            "nucleus.tempban.base": 1,
                            "nucleus.fly.base": 1,
                            "pixelextras.command.compsearch": 1,
                            "pixelextras.command.compsee": 1,
                            "pixelextras.command.pokesee": 1,
                            "nucleus.teleport.teleport.base": 1,
                            "nucleus.vanish.base": 1,
                            "nucleus.checkwarnings.base": 1,
                            "nucleus.ban.base": 1,
                            "nucleus.teleport.tppos.base": 1,
                            "nucleus.mute.base": 1,
                            "nucleus.removenote.base": 1,
                            "nucleus.socialspy.base": 1,
                            "nucleus.thru.base": 1,
                            "sponge.command.tps": 1,
                            "minecraft.command.tp": 1,
                            "minecraft.command.ban-ip": 1,
                            "griefprevention.admin.command.ignore-claims": 1   
                    }
                }
            ],
            "Enforcer": [
                {
                    "parents": [
                        "group:Mod"
                        ],
                        "permissions": {
                            "minecraft.command.gamemode": 1,
                            "minecraft.command.banlist": 1,
                            "nucleus.removewarning.base": 1,
                            "nucleus.clearwarnings.base": 1,
                            "nucleus.gamemode.base": 1,
                            "nucleus.broadcast.base": 1,
                            "griefprevention.admin.command.delete-claim": 1
                    }
                }
            ],
            "Architect": [
                {
                    "parents": [
                        "group:Aristocrat"
                        ],
                        "permissions": {
                            "nucleus.gamemode.base": 1,
                            "worldedit.tool": 1,
                            "voxelsniper.sniper": 1,
                            "voxelsniper.brush": 1
                    }
                }
            ],
            "Admin": [
                {
                    "parents": [
                        "group:Enforcer"
                        ],
                        "permissions": {
                            "nucleus.warp.delete.base": 1,
                            "nucleus.warp.set.base": 1,
                            "pixelextras.command.pokeedit": 1,
                            "pixelextras.command.pokegive": 1,
                            "griefprevention.admin.command.adjust-claim-blocks": 1,
                            "griefprevention.admin.command.admin-claims": 1,
                            "griefprevention.admin.command.list-admin-claims": 1
                    }
                }
            ],
            "HeadArchitect": [
                {
                    "parents": [
                        "group:Architect",
                        "group:HeadAdmin"
                        ],
                        "permissions": {
                    }  
                }
            ],
            "HeadPrick": [
                {
                    "parents": [
                        "group:HeadArchitect"
                        ],
                        "permissions": {
                    }
                }
            ], 
            "HeadAdmin": [
                {
                    "parents": [
                        "group:Admin"
                        ],
                        "permissions": {
                            "nucleus.rules.add.base": 1,
                            "nucleus.setworth.base": 1,
                            "nucleus.rules.remove.base": 1,
                            "nucleus.sudo.base": 1,
                            "nucleus.blacklist.base": 1,
                            "nucleus.blacklist.add.base": 1,
                            "nucleus.blacklist.list.base": 1,
                            "nucleus.blacklist.remove.base": 1,
                            "minecraft.command.op": 1,
                            "minecraft.command.deop": 1,
                            "minecraft.command.gamerule": 1
                    }
                }
            ]  
        },
        "user": {
            "c1c1e058-b506-4d78-9eaf-685b69d8cb48": [
                {
                    "parents": [
                        "group:Owner",
                        "group:Member"
                    ]
                }
            ]
        }
    },
    "schema-version": 4,
    "rank-ladders": {
        "default": [
            "group:Novice",
            "group:Apprentice",
            "group:Engineer",
            "group:Machinist",
            "group:Aristocrat",
            "group:Noble",
            "group:Ascendant",
            "group:Ethereal"
        ],
        "gymleader": [
            "group:RockGL",
            "group:GroundGL",
            "group:BugGL",
            "group:FireGL",
            "group:PsychicGL",
            "group:DarkGL",
            "group:FightingGL",
            "group:WaterGL",
            "group:E4",
            "group:Champion"
        ], 
        "staff": [
            "group:Helper",
            "group:Mod",
            "group:Enforcer",
            "group:Architect",
            "group:Admin",
            "group:HeadArchitect",
            "group:HeadPrick",
            "group:HeadAdmin",
            "group:Owner"
        ]
    }
}

First; Please don’t post massive files like that without using spoiler tags or off-site hosting (eg pastebin). It makes threads really hard to read.

If you want to recover your old file, run it through a json parser (eg http://json.parser.online.fr/) and see what it says. In your case it looks like some of the terminating brackets are wrong.

If you delete it, it will create fresh files on next start-up and you can start over again using commands. Otherwise, be very very careful with C&P, and don’t expect much more help - this kind of thing is exactly why zml wants people to use commands.

Yea I understand now. Thank you for the help, I really do appreciate it and sorry for wasting your time and posting the massive file, wont happen again.