-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tiered control #5
Comments
Couldn't permission Contexts help you with this? @zml2008 pinging for advice. |
You could check an |
@gabizou suggested a directed graph approach, which seems rather fun. |
kittens:
permission: kittens.in.mittens
cats:
permission: older.kittens
puppies:
permission: puppypuppy.puppy
cansee: kittens
axolotls:
permission: wtf.nature
cansee: [puppies,cats] |
@mbax What's the object oriented way of getting rich? Inheritance. I assume axolotls can see kittens then. Looks like a generic tree structure. Would you need a particular data type, or could you use something from Guava? |
If Guava has something you can point me at, that'd be neat. |
@mbax Haven't used it too specifically but wouldn't this just be a node system? You could traverse it to find the correct properties. Looking for a data storage to match this. Say, for example, I have permission node A and B, where B inherits A. Getting object A would give you the parents of A, but getting B would give you the parents of B (including A). https://github.com/PEXPlugins/PermissionsEx/blob/master/permissionsex-core/src/main/java/ninja/leaping/permissionsex/rank/FixedRankLadder.java is how PEX does it. |
Well, I thought of something, but I now realize Vanish has nothing to do with Packets. How would you enforce the visibility policy if you just use Invisibility keys? Is there some contextual thing for it? |
Some thoughts:
The text was updated successfully, but these errors were encountered: