hsyyid / EssentialCmds

EssentialCmds adds useful commands to Minecraft
https://bit.ly/2HPQ9tR
MIT License
31 stars 21 forks source link

warp permission #112

Open FrozenStone opened 8 years ago

FrozenStone commented 8 years ago

Hi I'm using your plugin essentialcmds and it really helped me alot. But I have this tiny problem. It's about permission for single warp. I saw your tutorial but I can't understand what you were saying. So can you please show me an example of how to set permission for single warp? Thanks

kinggoesgaming commented 8 years ago

@FrozenStone where did you see the instructions for it... i will see if i can reword it here for you

FrozenStone commented 8 years ago

@kinggoesgaming Warp Specific Permissions

Each warp now has its own permission as of v4.9c+ Please note that this still requires players to have the essentialcmds.warp.use permission to use /warp

Example:

Warp Name: Example Permission: essentialcmds.warp.use.example

This I tried to do this

FrozenStone commented 8 years ago

From https://forums.spongepowered.org/t/essentialcmds-v8-1-11/8576

FrozenStone commented 8 years ago

@kinggoesgaming

kinggoesgaming commented 8 years ago

Show your permission config

@FrozenStone

Evolht commented 8 years ago

I also had this issue. If I allow "permission essentialcmds.warp.use" to be true, all users of that group and above have access to every single warp. I can counter this by explicitly setting permissions on a warp location to false, but it seems counter intuitive.


{
    "subjects": {
        "default": {
            "default": [
                {
                    "contexts": {
                        "localip": "127.0.0.1"
                    },
                    "permissions-default": 0
                }
            ],
            "user": [
                {
                    "parents": [
                        "group:A"
                    ]
                }
            ]
        },
        "A": {
            "user": [
                {
                    "parents": [
                        "group:A"
                    ]
                }
            ]
        },
        "group": {
            "C": [
                {
                    "parents": [
                        "group:B"
                    ],
                    "options": {
                        "prefix": "&8[C]&e "
                    },
                    "permissions": {
                    }
                }
            ],
            "A": [
                {
                    "options": {
                        "prefix": "&8[A]&e "
                    },
                    "permissions": {
                       "essentialcmds.warp.use.b": -1,
                        "essentialcmds.warp.use.a": 1,
                        "essentials.spawn": 1,
                        "essentialcmds.spawn.use": 1,
                        "essentialcmds.warps.list": 1,
                        "essentialcmds.warp.use": 1,
                    }
                }
            ],
            "B": [
                {
                    "options": {
                        "prefix": "&8[B]&e "
                    },
                    "permissions": {
                        "essentials.warp.b": 1
                    }
                }
            ],
            "D": [
                {
                    "parents": [
                        "group:C"
                    ],
                    "options": {
                        "prefix": "&8[D]&e "
                    },
                    "permissions": {
                    }
                }
            ],
            "admin": [
                {
                    "permissions-default": 1
                }
            ]
        },
        "user": {

        }
    },
    "schema-version": 4,
    "rank-ladders": {
        "default": [
            "group:A",
            "group:B",
            "group:C",
            "group:D"
        ]
    },
    "context-inheritance": {}
}