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
Multiple Permissions in a command #6560
Comments
Shouldn't be hard to implement but I don't see the appeal of having two or more permissions just to use a skript command |
It might be useful for say you want to sell it as a perk (permission 1) and you want to also sell it as one of the perks to a rank (permission 2) |
This doesn't really seem like a valuable addition. Firstly, it's not doing anything you can't do by just checking the permissions yourself at the beginning of the Secondly, it's actually worse than this, since it's unclear how the permissions are supposed to be compared: does player need test AND test2? test OR test2? test XOR test2? I'm pretty sure lists default to AND (but I don't remember off the top of my head) so this would mean the player needs to have all of the listed permissions. In the best case scenario this is just going to confuse users who think it's one way when it's the other. |
Ahh yeah I forgot lists defaulted to and. I guess we could make it so you can do and regarding the first statement, yes you could do that, but sometimes I find it quite annoying to do and wish I could just specify it in the |
There is some merit is not doing it in the trigger, as it allows bukkit to properly choose who to send the command too, but I agree it would be confusing as is. "And" and "or" would go some way to help but we might need more explicit syntax for something like this. However, it'd be best to create a command-specific permission and just give that to various groups that need to run the command. It's how permissions plugins are meant to be used. |
Hang on, are we sure Bukkit supports multi-permissions behaviour? If so, is it an AND or an OR? That might decide whether we can proceed with this. Edit: as far as I can tell, Bukkit commands support only a single permission in the command metadata. Unless we have a way around this ourselves, the point seems kind of moot. |
Oh I did not know it was in exclusively an |
Uh just double check this, but you may already be able to use it by just entering |
Suggestion
I was hoping there would be a way we could add multiple permissions to a command, but if you have one of the permissions, it would work.
Example:
Why?
This would make it super useful for making a command with different permissions so you dont have to do one permission and can just make it multiple.
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: