🔑 PermissionsEx v2.0 [API 5]

In the essentialcmds config

its at 30000

afk {
kick {
timer=30000
use=false
}
timer=30000
}

30k milliseconds, so 30 seconds :wink: add another 0 and make it 5 mins

ok but even in creative mode i cant break a block is that realy going to fix it?

so its checking ever second for

10:40:27 PM CONSOLE: thread/INFO] [PermissionsEx]: Permission essentialcmds.afk.exempt checked in [world=world, localip=192.168.1.146, localport=25565, dimension=Overworld

its a constant spam with debug on even if i don’t do anything

yes i re-rooted after adding a 0

so still not working for whatever reason only ops can do anything even creative people cant open/break/build anything and idk what else to do >.<

Do you have spawn protection activated in server.properties, or perhaps some other protection plugin? The fact that only OPs can build means some form of permission is preventing the others.

looking in to that … so somehow my spawn protection is set to 300000 blocks WTH i think i been trolled

thanks i totaly didn’t even think about looking at spawn protect …

2 Likes

That does not answer my questions can give me the answer if it is compatible with my version of sponge?.

If it’s good for my configuration file.

From what I can see, you don’t even have any groups defined. Just a default subject. Do you want me to give you a setup permissions file similar to what you have so you can get started?

Also, make sure you have the most recent build of PEX, #102, I believe.

With current version # 102 (December 13, 2015 9:34:41)

I want to thank you it’s well PLUSIEUR position I request an example concrais.
Back to you, but configuration file that I have met.

Version
forge-1.8-1577-2.1-DEV-907
spongeforge-1.8-1577-2.1-DEV-907

Plugin
CommandSigns-0.8d
EssentialCmds-5.9b
permissionsex-sponge-2.0-SNAPSHOT
ProjectWorlds
worldedit-forge-mc1.8-6.1

Here is my file permissions.json

{
    "subjects": {
        "default": {
            "default": [
                {
                    "contexts": {
                        "srcip": "127.0.0.1"
                    },
                    "permissions-default": 1
                    "commandsigns.addcommand": 1
                    "commandsigns.removecommand": 1
                    "commandsigns.setcommand": 1
                    "commandsigns.create": 1
                    "commandsigns.destroy": 1
                    "commandsigns.modify": 1
                    "commandsigns.use": 1
                    "essentialcmds.home.use": 1
                    "essentialcmds.home.set": 1
                    "essentialcmds.home.list": 1
                    "essentialcmds.home.delete": 1
                    "essentialcmds.heal.use": 1
                    "essentialcmds.feed.use": 1
                    "essentialcmds.heal.others": 1
                    "essentialcmds.feed.others": 1
                    "essentialcmds.spawn.use": 1
                    "essentialcmds.spawn.set": 1
                    "essentialcmds.tpa.use": 1
                    "essentialcmds.tpa.accept": 1
                    "essentialcmds.tpahere.use": 1
                    "essentialcmds.tpadeny.use": 1
                    "essentialcmds.broadcast.use": 1
                    "essentialcmds.tphere.use": 1
                    "essentialcmds.color.chat.use": 1
                    "essentialcmds.color.sign.use": 1
                    "essentialcmds.warp.set": 1
                    "essentialcmds.warps.list": 1
                    "essentialcmds.warp.use": 1
                    "essentialcmds.warp.delete": 1
                    "essentialcmds.warps.use.sign": 1
                    "essentialcmds.afk.use": 1
                    "essentialcmds.sudo.use": 1
                    "essentialcmds.sudo.exempt": 1
                    "essentialcmds.powertool.use": 1
                    "essentialcmds.afk.kick.false": 1
                    "essentialcmds.afk.exempt": 1
                    "essentialcmds.mail.use": 1
                    "essentialcmds.mail.list": 1
                    "essentialcmds.mail.read": 1
                    "essentialcmds.message.use": 1
                    "essentialcmds.message.respond": 1
                    "essentialcmds.gamemode.use": 1
                    "essentialcmds.motd.use": 1
                    "essentialcmds.kick.use": 1
                    "essentialcmds.ban.use": 1
                    "essentialcmds.repair.use": 1
                    "essentialcmds.mute.use": 1
                    "essentialcmds.unmute.use": 1
                    "essentialcmds.kill.use": 1
                    "essentialcmds.teleport.pos.use": 1
                    "essentialcmds.teleport.pos.others": 1
                    "essentialcmds.weather.use": 1
                    "essentialcmds.time.set": 1
                    "essentialcmds.back.use": 1
                    "essentialcmds.unban.use": 1
                    "essentialcmds.hat.use": 1
                    "essentialcmds.getpos.use": 1
                    "essentialcmds.getpos.others": 1
                    "essentialcmds.fly.use": 1
                    "essentialcmds.fly.others": 1
                    "essentialcmds.lightning.use": 1
                    "essentialcmds.speed.use": 1
                    "essentialcmds.jump.use": 1
                    "essentialcmds.ignite.use": 1
                    "essentialcmds.ignite.others": 1
                    "essentialcmds.more.use": 1
                    "essentialcmds.nick.use": 1
                    "essentialcmds.nick.others": 1
                    "essentialcmds.mobspawn.use": 1
                    "essentialcmds.enchant.use": 1
                    "essentialcmds.speed.others": 1
                    "essentialcmds.whois.use": 1
                    "essentialcmds.playerfreeze.use": 1
                    "essentialcmds.butcher.use": 1
                    "essentialcmds.tpworld.use": 1
                    "essentialcmds.worlds.list": 1
                    "essentialcmds.world.create": 1
                    "essentialcmds.world.delete": 1
                    "essentialcmds.rtp.use": 1
                    "essentialcmds.fireball.use": 1
                    "essentialcmds.rules.use": 1
                    "essentialcmds.rules.add": 1
                    "essentialcmds.rules.remove": 1
                    "essentialcmds.asconsole.use": 1
                    "essentialcmds.mobspawner.use": 1
                    "essentialcmds.direction.use": 1
                    "essentialcmds.iteminfo.use": 1
                    "essentialcmds.blockinfo.use": 1
                    "essentialcmds.teleport.use": 1
                    "essentialcmds.teleport.others": 1
                    "essentialcmds.entityinfo.use": 1
                    "essentialcmds.lockweather.use": 1
                    "pjw.cmd.world.properties": 1
                    "pjw.cmd.world.list": 1
                    "pjw.cmd.world.lockweather": 1
                    "pjw.cmd.world.locktime": 1
                    "pjw.cmd.world.hardcore": 1
                    "pjw.cmd.world.keepspawnloaded": 1
                    "pjw.cmd.world.setspawn": 1
                    "pjw.cmd.world.respawn": 1
                    "pjw.cmd.world.gamemode": 1
                    "pjw.cmd.world.difficulty": 1
                    "pjw.cmd.world.portal": 1
                    "pjw.cmd.world.button": 1
                    "pjw.cmd.world.plate": 1
                    "pjw.cmd.world.delete": 1
                    "pjw.cmd.world.create": 1
                    "pjw.cmd.world.teleport": 1
                    "pjw.cmd.world.teleport.others": 1
                    "pjw.cmd.world.pvp": 1
                    "pjw.cmd.world.gamerule": 1
                    "pjw.cmd.world.rename": 1
                    "pjw.cmd.world.load": 1
                    "pjw.cmd.world.unload": 1
                    "pjw.cmd.world.copy": 1
                    "pjw.sign.place": 1
                    "pjw.sign.break": 1
                    "pjw.sign.interact": 1
                    "pjw.portal.place": 1
                    "pjw.portal.break": 1
                    "pjw.portal.interact.[world]": 1
                    "pjw.button.break": 1
                    "pjw.button.interact.[world]": 1
                    "pjw.plate.break": 1
                    "pjw.plate.interact.[world]": 1
                    "sponge.command.audit": 1
                    "sponge.command.chunks": 1
                    "sponge.command.config": 1
                    "sponge.command.heap": 1
                    "sponge.command.help": 1
                    "sponge.command.plugins": 1
                    "sponge.command.reload": 1
                    "sponge.command.save": 1
                    "sponge.command.version": 1
                    "forge.command.forge": 1
                    "minecraft.command.help": 1
                    "minecraft.command.me": 1
                    "minecraft.command.say": 1
                    "minecraft.command.tell": 1
                    "worldedit.biome.info": 1
                    "worldedit.biome.set": 1
                    "worldedit.biome.list": 1
                    "worldedit.chunkinfo": 1
                    "worldedit.listchunks": 1
                    "worldedit.delchunks": 1
                    "worldedit.clipboard.cut": 1 
                    "worldedit.clipboard.paste": 1
                    "worldedit.schematic.formats": 1
                    "worldedit.clipboard.load": 1
                    "worldedit.schematic.load": 1
                    "worldedit.schematic.list": 1
                    "worldedit.clipboard.save": 1
                    "worldedit.schematic.save": 1
                    "worldedit.clipboard.clear": 1 
                    "worldedit.clipboard.copy": 1
                    "worldedit.clipboard.flip": 1
                    "worldedit.clipboard.rotate": 1
                    "worldedit.reload": 1
                    "worldedit.help": 1
                    "worldedit.fast": 1
                    "worldedit.global-mask": 1
                    "worldedit.limit": 1
                    "worldedit.generation.cylinder": 1
                    "worldedit.generation.sphere": 1
                    "worldedit.generation.forest": 1
                    "worldedit.generation.pumpkins": 1
                    "worldedit.generation.pyramid": 1
                    "worldedit.generation.shape": 1
                    "worldedit.history.undo": 1
                    "worldedit.history.redo": 1
                    "worldedit.history.clear": 1
                    "worldedit.navigation.unstuck": 1
                    "worldedit.navigation.ascend": 1
                    "worldedit.navigation.descend": 1
                    "worldedit.navigation.ceiling": 1
                    "worldedit.navigation.thru.command": 1
                    "worldedit.navigation.jumpto.command": 1
                    "worldedit.navigation.up": 1
                    "worldedit.region.hollow": 1
                    "worldedit.region.line": 1
                    "worldedit.region.curve": 1
                    "worldedit.region.overlay": 1
                    "worldedit.region.center": 1
                    "worldedit.region.naturalize": 1
                    "worldedit.region.walls": 1
                    "worldedit.region.faces": 1
                    "worldedit.region.smooth": 1
                    "worldedit.region.move": 1
                    "worldedit.regen": 1
                    "worldedit.region.deform": 1
                    "worldedit.region.forest": 1
                    "worldedit.region.replace": 1
                    "worldedit.region.stack": 1
                    "worldedit.region.set": 1
                    "worldedit.scripting.execute": 1 
                    "worldedit.selection.pos": 1
                    "worldedit.selection.chunk": 1
                    "worldedit.selection.hpos": 1
                    "worldedit.wand": 1
                    "worldedit.wand.toggle": 1
                    "worldedit.selection.contract": 1
                    "worldedit.selection.outset": 1
                    "worldedit.selection.inset": 1
                    "worldedit.analysis.distr": 1
                    "worldedit.analysis.count": 1
                    "worldedit.selection.size": 1
                    "worldedit.selection.expand": 1
                    "worldedit.selection.shift": 1
                    "worldedit.snapshots.restore": 1
                    "worldedit.snapshots.list": 1
                    "worldedit.superpickaxe": 1
                    "worldedit.superpickaxe.area": 1
                    "worldedit.superpickaxe.recursive": 1
                    "worldedit.tool.tree": 1
                    "worldedit.tool.replacer": 1
                    "worldedit.tool.data-cycler": 1
                    "worldedit.tool.flood-fill": 1
                    "worldedit.brush.sphere": 1
                    "worldedit.brush.cylinder": 1
                    "worldedit.brush.clipboard": 1
                    "worldedit.brush.smooth": 1
                    "worldedit.brush.ex": 1
                    "worldedit.brush.gravity": 1
                    "worldedit.brush.butcher": 1
                    "worldedit.tool.deltree": 1
                    "worldedit.tool.farwand": 1
                    "worldedit.tool.lrbuild": 1
                    "worldedit.tool.info": 1
                    "worldedit.brush.options.material": 1
                    "worldedit.brush.options.range": 1
                    "worldedit.brush.options.size": 1
                    "worldedit.brush.options.mask": 1
                    "worldedit.fill.recursive": 1
                    "worldedit.drain": 1
                    "worldedit.fixlava": 1
                    "worldedit.fixwater": 1
                    "worldedit.removeabove": 1
                    "worldedit.removebelow": 1
                    "worldedit.removenear": 1
                    "worldedit.replacenear": 1
                    "worldedit.snow": 1
                    "worldedit.thaw": 1
                    "worldedit.green": 1
                    "worldedit.extinguish": 1
                    "worldedit.butcher": 1
                    "worldedit.remove": 1
                    "worldedit.fill": 1
                    "worldedit.limit.unrestricted": 1
                    "worldedit.inventory.unrestricted": 1
                    "worldedit.anyblock": 1
                    "worldedit.override.bedrock": 1
                    "worldedit.navigation.jumpto.tool": 1
                    "worldedit.navigation.thru.tool": 1
                }
            ]
        }
    },
    "schema-version": 4
}

My permissions.conf file

 # The list of backends able to be selected
    backends {
        # This will be the default backend once SQL database support is implemented
        # default {
        #  type = sql
        #  url = "jdbc:h2:permissions.db"
        # }
        simple {
            # Place file entries in alphabetical order
            alphabetize-entries=false
            file="permissions.json"
            type=file
        }
    }
    # Whether to log permissions checks being performed
    debug=false
    # The default backend to use. Must be contained in the backends mapping.
    default-backend=simple
    # Tags that apply to this server (which match with permissions blocks restricted by server-tag contexts
    server-tags=null
    version=0

Thank you beforehand.

You can’t use the commands to setup permissions as your permissions.json is incorrectly formatted since you wrote it manually and didn’t know what you were doing, start with an empty file and reload PEX, then create a group using /pex group [name of group] def false
Then use /pex group [name of group] perm true
You will then have some correct structure to work with but you should still only use commands and not manually edit permissions

Could I get a quick rundown on how the Priority works? I’ve tried everything and it seems the priority isn’t doing to much besides blocking commands as it would need to. Wondering for Prefix and Suffix reasons since they only allow one of each. Needing a higher priority Prefix to take over. I do so and it doesn’t seem to work?

For prefixes and suffixes whichever occurs first in the inheritance tree is what’s used.

The priority system only makes sense for permissions where there’s multiple levels of nodes outside of the inheritance system (a, a.b, a.b.c, etc).

I was hoping for Prefix and Suffix the LAST thing in the inheritance tree would be used, But I understand the priority now. Any chance You might be able to do something for the Prefix and such?

I recreate the Pex configuration files.
Every time I type a command here is the result.

[16:46:06] [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]]

That’s my permissions.json file.

How do I create and have in my Admin group member Modo file with different permissions.

permissions.json

{
        "subjects": {
            "default": {
                "default": [
                    {
                        "contexts": {
                            "srcip": "127.0.0.1"
                        },
                        "permissions-default": 1
                    }
                ]
            }
        },
        "schema-version": 4
    }

sib-perms.json · GitHub creates that structure.

Create new group Foo1

There’s no operation to explicitly create a group – groups will be added to the permissions file as soon as they have data.

Make it so when new users join the server they are assigned to group Foo1

/pex default user parent add group Foo1

Make two more groups: Foo2 Foo3

see above

If a user in group Foo is promoted, they go to Foo2 group
if a user in group Foo2 is promoted, they go to Foo3 group.

/pex rank default add group Foo1
/pex rank default add group Foo2
/pex rank default add group Foo3

A fourth group is created: Bar
Bar has all permissions, aka “*”

/pex group Bar def true

Bar is not in the ladder of Foo1 … N
Create a set of groups, X, Y and Z where these groups are not in any promotion ladder but simply are containers for distinct permissions and so I can inherit them as such:
Foo1 inherits X

/pex group Foo1 parent add X

Foo2 inherits X, Y

/pex group Foo2 parent add X
/pex group Foo2 parent add Y

Foo3 inherits X, Y, Z

/pex group Foo3 parent add X
/pex group Foo3 parent add Y
/pex group Foo3 parent add Z

X Y and Z are mutually exclusive permissions

Call me crazy, the YML was easy to understand. :wink:
[/quote]

2 Likes

Is there a way to do conditional permission granting / grouping? For example, if a person is flagged as a leader of a town in the Polis plugin, could they be automatically assigned to a permissions group? etc…

This would require user attributes, but could be useful.