BuildingPlanner

BuildingPlanner

6.3k Downloads

Permissions not working

FePython opened this issue ยท 14 comments

commented

so i got the new 2.0 and tried it out but i didnt like how people can set up an area and build a large house and never set it as finish and actually going out and getting the things they need, so im trying to find alternatives to this but when i wanted to make sure permissions were working right so i set my player as a regular with no OP powers of any-kind and i set the permissions to actually use your plugin under Admin. i could still create them as well as build in them even tho i was not Admin or OP, not sure why this is as there is no error as far as the log is concern. are you setting this up to work with superperm or something else?

commented

The permissions are based on the bukkit permission system, they default to everyone having access to everything - you need to actually switch them off by setting these permission nodes - it doesn't base it on op or not. So in order to utilize these permissions, you need some kind of permission plugin on your server that integrates with the bukkit permissions.

I use PermissionsBukkit - http://dev.bukkit.org/server-mods/permbukkit/ for testing.

buildingplanner.create:
description: Allows player to define a building area
default: true
buildingplanner.destroy:
description: Allows player to cancel a building area (by breaking the sign)
default: true
buildingplanner.use:
description: Allows player to use planning areas
default: true
buildingplanner.commit:
description: Allows player to commit planning areas
default: true
buildingplanner.uncommit:
description: Allows player to uncommit planning areas
default: true

commented

Yeah I just whent on mycmyadmin to dubble check and it's just like how you have it here that's really odd. Nojt sure why it's boy working but I'll keep messing whith it once this trip is over

commented

That's the thing I am using permissionBukkit and I have the nodes set up just like you showed yet it is not using them and insted using the default of everyone uses the permission. So this does not really help me when I'm back home on the 2ndi can even copy and past the permissions listed but there would be no point as there the exact same as yours here. Only other thing I can think of trying is telling the lowest group to be

buildingplanner.*: false

Then the groups that can use it change it to true

Is that what I need to do? Because asfar as I know I should not have to post the nodes twice just to get the result I need.

commented

Hmm, that totally doesn't sound right - I'll look into it again and see If I can replicate your issue

commented

Once I'm back in Seattle ill try it once more from scratch if I still can't get it I'll copy my config here to show u how I have it listed I am running a list of other plugins but I can't see how any of those could create this problem buy who knows

commented

I have tested this with each of the permissions using just permissionBukkit using the commands :

/permissions player setperm CmdrDats buildingplanner.create false
/permissions player setperm CmdrDats buildingplanner.destroy false
/permissions player setperm CmdrDats buildingplanner.use false
/permissions player setperm CmdrDats buildingplanner.commit false
/permissions player setperm CmdrDats buildingplanner.uncommit false

and they all seem to work as expected? I'm not 100% clued up on permissions, so maybe there's something i'm missing? My server only has MemoryStone, BuildingPlanner and PermissionsBukkit installed.

commented

alright so here is what i did to see if it was working

default:
permissions:
mchat.prefix.default: true
permissions.build: false
buildingplanner.*: false

Lord:
permissions:
mchat.prefix.Regulars: false
mchat.prefix.Lord: true
permissions.player.*: true
permissions.reload: true
scrollingmenusign.admin: true
bukkit.command.op.give: true
inheritance:
- default

Moderators:
permissions:
mchat.prefix.Lord: false
mchat.prefix.Moderators: true
buildingplanner.*: true
inheritance:
- Lord

now i when i was a Moderator i could build a plan, yay. now i go to lord and try it, and i could build a plan....not so yay lol

as you can see from the layout i told it that you can not use the permissions of any of the buildingplanner commands unless you were of Moderator status and lord is below that. i also tried it with out the buildingplanner.*: false and nothing changed still was letting me use all the plan abilities even tho i should not have the right to it.

i am using your most up to date version of buildingplanner so you know

commented

if you want to i can create a video of me going thru it and showing you that way as well i don mind.

commented

I think you may be having this issue because I don't have an explicit group of buildingplanner.* setup - What I'll do is add it and let you know when it's up so you can try it again with the 0.5.2 dev version :)

commented

ah yeah thats most likely it im so use to using * to say all because it makes my permission list much smaller that i didnt think you might not have that set up. ill test it out once your new update is out but tel then, ill go ahead and try them out separated first (but from what i see im guessing that will work but might as well try anyways)

commented

This should be working as expected in 0.5.2 - I also added the buildingplanner.architect (for creating/destroying) and buildingplanner.planner (simply using and reporting) permissions

commented

I've implemented this and deployed it to 0.5.2 - let me know if that sorts out this problem correctly for you - if not, please reopen this issue :)

commented

Forget that last one (not sure still why) but it works on other areas just not the one i tried (still gives me that error on that one plan no idea why)

ether way tried it out with buildingplanner.* and if i tell the lowest group to have false then it seams to be working now, so only error i saw was that is not closed when it was and i think that just has to do with the fact i built it 5X5 and half was on another chunk (no idea what makes that a problem) but i have only had it happen that once and i could not replicate it. now all i have to do is wait for white-listing and i think it will be ready to use in my servers guild system.

thanks for working this all out that buildingplanner.*: false think saves me a lot of space and im glad its working now but ill keep my eye out for that close glitch if it happens again ill take a screen shot so you can see and all that

commented

cant test it really, every time i try to make one is says on the sign

Boundaries not closed

well i have a wall of fences around the sign just like i always do. and it is giving me this error if i have permissions to use it or not. i first tested it with buildingplanner.*: true, after that didnt work I set it up so that the permissions were separated like how you have it,

/permissions player setperm CmdrDats buildingplanner.create false
/permissions player setperm CmdrDats buildingplanner.destroy false
/permissions player setperm CmdrDats buildingplanner.use false
/permissions player setperm CmdrDats buildingplanner.commit false
/permissions player setperm CmdrDats buildingplanner.uncommit false

and it gives me that error as well lol. and this is using version 0.5.2

p.s. i cant reopen the issue just so you know, ^.^