-
Notifications
You must be signed in to change notification settings - Fork 20
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
add Lands support #105
add Lands support #105
Conversation
Hi, @XXY233! Thanks for the PR. Overall looks pretty good, I'll try to find time next month to test and merge it. |
- Updated Permissions class - Updated README.md
@josemmo Thank you for taking the time to review the code 🙂. But there's a problem, without passing in a LandPlayer, the OP and people with skip permissions can't destroy images in other people's lands. |
Hi, @XXY233! Thanks for letting me know, there's no mention of that in the documentation nor I can test it as Lands is a paid plugin. By the way, how did you find that? The problem with using the other method is this:
The material should not matter for Yamipa as, although we're checking against the block where the image is placed, we're not actually breaking that block. If, according to this, during a war there are some blocks that can be broken, an attacker may exploit this to remove images. |
This is because my server had this problem a long time ago. Then I communicated with the author and he submitted these codes: https://github.com/baked-libs/dough/pull/223/files If someone starts a land war, then I guess it's the land owner's responsibility to protect the images, there's not much we can do 🤔. |
I don't agree with that. As developers, we also are responsible for making secure software. Can't we just pass |
I agree with you 🙂, I just tested it. If null is passed in, hasRoleFlag() will return false and the attacker will not be able to destroy the image. |
Great! Thanks for testing it. Will push a commit to |
- Updated Permissions class > Related to #105
No description provided.