Spells

Spells

5.2k Downloads

Permissions support

Hypersonic opened this issue ยท 11 comments

commented

We need basic permissions support (I know we've discussed this, I just want it to be up here for the record).

Optimally, we'd use the built-in Bukkit permissions, but there are other permissions systems like bPermissions that might be worth looking into for their viability.

commented

I think bukkit has a permissions systems that other plugins actually provide the implementation for, so I think the best option is to just use bukkit's api and then make spells compatible with every permissions plugin and even no permissions plugin.

commented

Is anybody interested in doing this or should I?

commented

also, how should permissions work? should only ops be able to use spells without permissions or should anybody? what permissions should we have (and what are we able to have)? should spellgroups get permissions that affect everything within the group, overriden by specific elements within?

commented

I'm thinking it'll be a spellgroup-based node system, so you do spells.[group].[spellname] as the permission, and you can do spells.[group].* or spells.* for wildcards

commented

However, we should obviously finish groups first.

commented

I completely agree on the format (accomodating for nested spellgroups ofc). I'd be happy to look into permissions, if you like.

commented

one other thing: I just noticed that you suggested that we use built in permissions. AFAIK, bukkit doesn't have any built in permissions. Their API for permissions doesn't actually do anything unless you have a permissions plugin, which implements everything that the built in permissions do. I certainly like the looks of bpermissions and I think we should use that.

commented

Ok, it appears that as long as we're compatible with the built in permissions system (called SuperPerms), we're all cool. bPermissions says it supports that, and I'm gonna assume whatever else there is out there works too.

commented

Well, if they provide a standard way of doing it, permissions plugins probably support that. I'll look into it a bit.

commented

Josh, I need you to test permissions. I don't know how the permissions plugins work and even if I could figure it out I'm still having issues with my tekkit client. If they work for casting spells, I'll add more permissions for the various commands and some other miscellaneous stuff.