[unsupported Guide] PEX quick command reference

Too many arguments here is actually a lack of arguments.[quote=“MoeBoy76, post:1, topic:8738”]
adding a permission directly to a player:

/pex user MoeBoy76 perm pixelmon.command.pokebattle true
[/quote]

You are missing the 1 (true), 0 (null) or -1 (false) after the permission node.

1 Like

Oh, darn. I should’ve seen that sooner…

sry, dbl post…

I am a GroupManager refugee in need of assistance in making sense of how to construct a specific permissions infrastructure in a multiworld scenario that is a piece-of-cake for GM to setup, but has my head spinning for even knowing what to try to think about designing out…

Assistance from PEXperts is greatly appreciated here Need to know if the following is possible or impossible, and what would be needed

First of all thank you for this, very informative commands.

However 2 issues i have with pex(in comparrison to groupmanager).

First is the layout which for me looks plain ugly especially when griefprevention(??) randomly adds lines while they could have added them in their seperate config folder and not inside my personal permissions folder.
Example(http://pastebin.com/J7t6qMf7)

If you compare this to my older previous permissions with (http://pastebin.com/8CwVijUx) you can hopefully see what i mean with the pex one looking ugly. The brackets, the indentation, the spaces,… groupmanager was perfectly readable, pex as it is now is not.

So my question to you is, is there a way to make it look more like the groupmanager one? And is there a way to not have my griefprevention plugin mess up the entire beginning of my pex permissions file?

Thanks in advance!

  1. you should be asking on the PEX thread

  2. it looks perfectly fine to me as i use notepad++ with formatting so i can minimise what i don’t need to look at and i’m familiar with JSON

  3. you shouldn’t be looking at the permissions file at all unless you are 120% confident with JSON formatting, which you are clearly not

1 Like

Is possible using wildcards when add permissions? Example: someplugin.user.* for someplugin.user.join, someplugin.user.leave …

instead of wildcards PEX Sponge uses inherited permissions, so use someplugin.user instead of someplugin.user.*

I’m receiving ‘Too many arguments’ writing a lot of these commands. I’m using permissionsex-sponge-2.0-SNAPSHOT-shaded.
I’m hosting the server from a different IP, and I’m doing all the commands via the console. Doing pex group admin def true works fine, but pex user <name> parent add group admin gives

[10:56:34] [Server thread/INFO]: Too many arguments!
[10:56:34] [Server thread/INFO]: Usage: /pex [debug|reload|import|ranking|[–context|–contexts|-c] [-transient] subject permission-default|delete|options|info|permission|parents|[-transient] subject-type list [filter]]

How would I do this correctly?

try /pex user <name> parent add admin as i don’t think you need to specify that the parent is a group anymore

I still got the same error:

[12:41:53] [Server thread/INFO]: Too many arguments!
[12:41:53] [Server thread/INFO]: Usage: /pex [debug|reload|import|ranking|[–context|–contexts|-c] [-transient] subject permission-default|delete|options|info|permission|parents|[-transient] subject-type list [filter]]

then you are doing something very wrong, what is the exact command you are typing?

pex user techangel parent add admin
Executed from the console

does the case-sensitive group admin exist and are is techangel online when you run the command?

Yes it does.
He has been both online and offline while trying to execute the command.

Oh, it seems like user is case sensitive. Sorry for the trouble!

I Just would like to know can the perms be edit via the .json file or dose it all have to be done via console/ in game ?
I have tried following the format letter for letter double checking everything but every time i reload with the edited .json file it wont load pex. I just don’t feel like doing a / command for every perm and every rank and all the options -_- I like to save time

Yes, you can edit the file manually. However most people seems to break the perms while doing so.
I highly suggest using a json validator (there are some available online) while editing the file manually.
But please note that editing manually doesn’t have any support at all, zml will only support editing via ingame commands.

Here’s a basic file (with ranks) to get you started:

hay yea I did it I found what I did wrong it was a very simple error I put a “,” in the wrong spot haha happens thx for the help those things help alot
[details=Summary]{
“subjects”: {
“default”: {
“default”: [
{
“contexts”: {
“localip”: “127.0.0.1”
},
“permissions-default”: 1
},
{
“contexts”: {
“world”: “PokeOxide”,
“gp_claim_defaults”: “ADMIN”
},
“permissions”: {
“griefprevention.claim.flag.exit-claim”: 1,
“griefprevention.claim.flag.projectile-impact-block”: -1,
“griefprevention.claim.flag.item-drop”: 1,
“griefprevention.claim.flag.projectile-impact-entity”: -1,
“griefprevention.claim.flag.explosion-surface”: -1,
“griefprevention.claim.flag.fire-spread”: -1,
“griefprevention.claim.flag.command-execute-pvp”: 1,
“griefprevention.claim.flag.item-use”: -1,
“griefprevention.claim.flag.item-pickup”: 1,
“griefprevention.claim.flag.interact-entity-secondary”: -1,
“griefprevention.claim.flag.command-execute”: 1,
“griefprevention.claim.flag.interact-entity-primary”: -1,
“griefprevention.claim.flag.pvp”: -1,
“griefprevention.claim.flag.entity-teleport-to”: 1,
“griefprevention.claim.flag.interact-inventory”: -1,
“griefprevention.claim.flag.portal-use”: 1,
“griefprevention.claim.flag.collide-block”: -1,
“griefprevention.claim.flag.entity-damage”: 1,
“griefprevention.claim.flag.block-place”: -1,
“griefprevention.claim.flag.collide-entity”: -1,
“griefprevention.claim.flag.explosion”: -1,
“griefprevention.claim.flag.entity-spawn”: 1,
“griefprevention.claim.flag.interact-block-secondary”: -1,
“griefprevention.claim.flag.entity-teleport-from”: 1,
“griefprevention.claim.flag.interact-block-primary”: -1,
“griefprevention.claim.flag.liquid-flow”: -1,
“griefprevention.claim.flag.enter-claim”: 1,
“griefprevention.claim.flag.entity-riding”: 1,
“griefprevention.claim.flag.block-break”: -1
}
},
{
“contexts”: {
“world”: “PokeOxide”,
“gp_claim_defaults”: “BASIC”
},
“permissions”: {
“griefprevention.claim.flag.exit-claim”: 1,
“griefprevention.claim.flag.projectile-impact-block”: -1,
“griefprevention.claim.flag.item-drop”: 1,
“griefprevention.claim.flag.projectile-impact-entity”: -1,
“griefprevention.claim.flag.explosion-surface”: -1,
“griefprevention.claim.flag.fire-spread”: -1,
“griefprevention.claim.flag.command-execute-pvp”: 1,
“griefprevention.claim.flag.item-use”: -1,
“griefprevention.claim.flag.item-pickup”: 1,
“griefprevention.claim.flag.interact-entity-secondary”: -1,
“griefprevention.claim.flag.command-execute”: 1,
“griefprevention.claim.flag.interact-entity-primary”: -1,
“griefprevention.claim.flag.pvp”: -1,
“griefprevention.claim.flag.entity-teleport-to”: 1,
“griefprevention.claim.flag.interact-inventory”: -1,
“griefprevention.claim.flag.portal-use”: 1,
“griefprevention.claim.flag.collide-block”: -1,
“griefprevention.claim.flag.entity-damage”: 1,
“griefprevention.claim.flag.block-place”: -1,
“griefprevention.claim.flag.collide-entity”: -1,
“griefprevention.claim.flag.explosion”: -1,
“griefprevention.claim.flag.entity-spawn”: 1,
“griefprevention.claim.flag.interact-block-secondary”: -1,
“griefprevention.claim.flag.entity-teleport-from”: 1,
“griefprevention.claim.flag.interact-block-primary”: -1,
“griefprevention.claim.flag.liquid-flow”: -1,
“griefprevention.claim.flag.enter-claim”: 1,
“griefprevention.claim.flag.entity-riding”: 1,
“griefprevention.claim.flag.block-break”: -1
}
},
{
“contexts”: {
“world”: “PokeOxide”,
“gp_claim_defaults”: “WILDERNESS”
},
“permissions”: {
“griefprevention.claim.flag.projectile-impact-block”: 1,
“griefprevention.claim.flag.item-drop”: 1,
“griefprevention.claim.flag.projectile-impact-entity”: 1,
“griefprevention.claim.flag.explosion-surface”: 1,
“griefprevention.claim.flag.fire-spread”: -1,
“griefprevention.claim.flag.command-execute-pvp”: 1,
“griefprevention.claim.flag.item-use”: 1,
“griefprevention.claim.flag.item-pickup”: 1,
“griefprevention.claim.flag.interact-entity-secondary”: 1,
“griefprevention.claim.flag.command-execute”: 1,
“griefprevention.claim.flag.interact-entity-primary”: 1,
“griefprevention.claim.flag.pvp”: 1,
“griefprevention.claim.flag.entity-teleport-to”: 1,
“griefprevention.claim.flag.interact-inventory”: 1,
“griefprevention.claim.flag.portal-use”: 1,
“griefprevention.claim.flag.collide-block”: 1,
“griefprevention.claim.flag.entity-damage”: 1,
“griefprevention.claim.flag.block-place”: 1,
“griefprevention.claim.flag.collide-entity”: 1,
“griefprevention.claim.flag.explosion”: 1,
“griefprevention.claim.flag.entity-spawn”: 1,
“griefprevention.claim.flag.interact-block-secondary”: 1,
“griefprevention.claim.flag.entity-teleport-from”: 1,
“griefprevention.claim.flag.interact-block-primary”: 1,
“griefprevention.claim.flag.liquid-flow”: 1,
“griefprevention.claim.flag.entity-riding”: 1,
“griefprevention.claim.flag.block-break”: 1
}
}
],
“user”: [
{
“parents”: [
“group:Trainer”
]
}
]
},
“group”: {
“Pokeball”: [
{
“parents”: [
“group:Trainer”
]
}
],
“Greatball”: [
{
“parents”: [
“group:Pokeball”
]
}
],
“Ultraball”: [
{
“parents”: [
“group:Greatball”
]
}
],
“Masterball”: [
{
“parents”: [
“group:Ultraball”
]
}
],
“LuckyEgg”: [
{
“parents”: [
“group:Masterball”
]
}
],
“Supporter”: [
{
“parents”: [
“group:Trainer”
]
}
],
“Breeder”: [
{
“parents”: [
“group:Trainer”
]
}
],
“H-Breeder”: [
{
“parents”: [
“group:Breeder”
]
}
],
“Gym-Leader”: [
{
“parents”: [
“group:Trainer”
]
}
],
“Gym-Recruter”: [
{
“parents”: [
“group:Gym-Leader”
]
}
],
“Helper”: [
{
“parents”: [
“group:Trainer”
]
}
],
“Builder”: [
{
“parents”: [
“group:Trainer”
]
}
],
“H-Builder”: [
{
“parents”: [
“group:Builder”
]
}
],
“T-Mod”: [
{
“parents”: [
“group:Trainer”
]
}
],
“Mod”: [
{
“parents”: [
“group:T-Mod”
]
}
],
“H-Mod”: [
{
“parents”: [
“group:Mod”
]
}
],
“T-Admin”: [
{
“parents”: [
“group:H-Mod”
]
}
],
“Admin”: [
{
“parents”: [
“group:T-Admin”
]
}
],
“H-Admin”: [
{
“parents”: [
“group:Admin”
]
}
],
“Owner”: [
{
“parents”: [
“group:H-Admin”
],
“permissions-default”: 1
}
],
“Trainer”: [
{
“permissions”: {
“essentials.kit”: 1,
“essentials.balancetop”: 1,
“essentials.balance”: 1,
“essentials.kit”: 1,
“essentials.balance”: 1,
“essentials.balancetop”: 1,
“essentials.pay”: 1,
“essentials.help”: 1,
“essentials.mail”: 1,
“essentials.mail.send”: 1,
“essentials.msg”: 1,
“essentials.recipe”: 1,
“essentials.rules”: 1,
“essentials.seen”: 1,
“essentials.suicide”: 1,
“essentials.ping”: 1,
“essentials.spawn”: 1,
“essentials.back”: 1,
“essentials.back.ondeath”: 1,
“essentials.keepxp”: 1,
“essentials.delhome”: 1,
“essentials.home”: 1,
“essentials.home.bed”: 1,
“essentials.sethome”: 1,
“essentials.sethome.bed”: 1,
“essentials.tpa”: 1,
“essentials.tpaccept”: 1,
“essentials.tpdeny”: 1,
“essentials.warp”: 1,
“essentials.warp.list”: 1,
“essentials.build”: 1,
“essentials.signs.use.balance”: 1,
“essentials.signs.use.buy”: 1,
“essentials.signs.use.disposal”: 1,
“essentials.signs.use.enchant”: 1,
“essentials.signs.use.free”: 1,
“essentials.signs.use.gamemode”: 1,
“essentials.signs.use.heal”: 1,
“essentials.signs.use.info”: 1,
“essentials.signs.use.kit”: 1,
“essentials.signs.use.mail”: 1,
“essentials.signs.use.protection”: 1,
“essentials.signs.use.repair”: 1,
“essentials.signs.use.sell”: 1,
“essentials.signs.use.spawnmob”: 1,
“essentials.signs.use.time”: 1,
“essentials.signs.use.trade”: 1,
“essentials.signs.use.warp”: 1,
“essentials.signs.use.weather”: 1,
“minecraft.command.help”: 1,
minecraft.command.me”: 1,
“minecraft.command.say”: 1,
“minecraft.command.tel”: 1,
“wondertrade.command.wondertrade”: 1,
“pixelextras.command.movelist”: 1,
“pixelextras.command.wiki”: 1,
“griefprevention.claim.create”: 1,
“griefprevention.claim.list-other”: 1,
“griefprevention.claim.visualize-claims”: 1,
“griefprevention.claim.command.abandon”: 1,
“griefprevention.claim.command.abandon-all”: 1,
“griefprevention.claim.command.abandon-top-level”: 1,
“griefprevention.claim.command.list”: 1,
“griefprevention.claim.command.info”: 1,
“griefprevention.claim.command.subdivide”: 1,
“spongychest.command”: 1,
“spongychest.setshop.command”: 1,
“spongychest.shop.create”: 1,
“spongychest.shop.destroy”: 1,
“essentials.tpahere”: 1,
“essentials.info”: 1,
“essentials.list”: 1<,>
}
}
]
}
},
“schema-version”: 4
}
[/details]

why does t he command /pex user [username] perm *
not work?

I also looked in config for the line that stats op-false and there is nothing?