Showing posts with label permissions. Show all posts
Showing posts with label permissions. Show all posts

Wednesday, October 5, 2011

Bukkit Permissions Plugin

Question

I have a Bukkit server and it uses the The Yeti's Permissions Plugin to mange user and group permissions. I recently came across another plugin which has support for a Permissions plugin but not The Yeti's Permission plugin. It says "MobArena does not support the legacy Permissions 2.x and 3.x plugins, as they are inactive and outdated". Is this true and if so what is a good alternative to the Permissions Plugin?

Answer

Permissions' functionality is being built in to Bukkit. There's a transitional plugin in the meantime called PermissionsBukkit so that plugin authors can start using the new built-in Permissions API before it is completely rolled into the server. This is the version that you'll need to install to be able to use most of the actively-maintained Bukkit plugins.

Wednesday, August 24, 2011

Bukkit Permissions Not Being Enforced

Question

Ok so I have a Bukkit server up and running and I want to use the Permissions Plugin to help give different users different permissions to help protect the server. I configured the permissions and reloaded them. However it seems that users have access to commands that they should not be able to run. Here is my set up...

Groups.yml

groups:
    Default:
        default: true
        info:
            build: false
        permissions:
    Builder:
        default: false
        info:
            build: true
        permissions:
            - 'worldedit.*'
            - 'mobSpawner.*'
            inheritance:
            - Default
    Moderator:
        default: false
        info:
            prefix: '&b'
            suffix: '&f'
            build: true
        inheritance:
            - Builder
        permissions:
            - 'worldedit.*'
            - 'motd.*'
            - 'worldguard.*'
    Admin:
        default: false
        info:
            prefix: '&4'
            suffix: '&f'
            build: true
        permissions:
            - '*'

Users.yml

users:
    test_user:
        groups:
        - Builder
        permissions:
    admin_user:
        permissions:
        groups:
        - Admin

When I run the /pr test_user perms listall command it outputs worldedit.*, mobSpawner.* which means that the permissions are being loaded correctly. But when I log on as test_user I am able to use the /regions command which is a part of WorldGuard plugin which the test_user should not have access to. What am I doing wrong?

Answer

Your problem may be that you are an OP on your server. I had this problem when setting up one a server – OPs seem to have permissions to access all commands (the * permission node), even if Essentials is trying to override it.