Permission per stone
zPorto opened this issue ยท 8 comments
Hi! First of all, nice plugin!
But How can I give my groups acess to just 1 stone?
Is it possible?
Thanks!
You mean let them each player create one field of a specific type? Or let a certain group access one of the configured stones but not the others?
Btw, in case you didn't know. You can delete the stones that you don't need from the config to get rid of them and only leave the ones you want. Like you can delete them all and only leave the 1.
You can use these flags to accomplish those goals:
http://preciousstones.shoutwiki.com/wiki/Field_Flag_Reference#limits
http://preciousstones.shoutwiki.com/wiki/Field_Flag_Reference#required-permission
I mean let a certain group acess one of the configured stones, but not the others!
And thanks for the outstanding quality and speed in answering my question!
Here is an example, say you have 2 stones configured on the config. City Protection, and Entry Bouncer:
You could add this flag to the City Protection:
required-permission: city-protection.permission
And add this flag to the Entry Bouncer:
required-permission: entry-bouncer.permission
Then in your permissions setup, add those permission only to the groups you want to have access to them:
members:
city-protection.permission: true
vips:
city-protection.permission: true
entry-bouncer.permission: true