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
added Bucket privilege to restrict bucket usage #2832
Conversation
Griefers like the bucket, as it is not very safe if used near protected areas.
As stated by the pinned issue, Minetest Game is in maintenance mode and not accepting new features. This is unlikely to be accepted. |
As a workaround proposal: expose and document the function |
smalljoker: you think about overwriting the check protection to check against a new priv bucket. |
@codeandfix I totally see why you'd like to have this in MTG, but the current state of the PR is not generic enough. If you would change |
Add your own server customization mod to keep things clean, here for example XP is used to check if buckets can be used: https://github.com/pandorabox-io/pandorabox_custom/blob/master/onplace_restriction.lua |
i have to figure out more how overwriting works fine. i fear it wont work in most cases. |
How well overrides work depends on how overrides are implemented. For example that liquid onplace_restriction example does not actually outright override any existing code but wraps it inside custom privilege checks. Actually rewriting parts of mod code will likely fail some day but wrapping mod code often seems to work forever without issues. That example been unchanged since 2019, some similar things been unchanged without issues way longer. Basic function wrapping can often be easily implemented without overriding any of the original code, if it seems you'd need to override actual original code and have no option to wrap it unchanged then it is way more likely to cause issues with updates. Simply put for usual cases:
|
Stale, closing. |
Griefers like the bucket, as it is not very safe if used near protected areas.