Recent Discussions

block / entity permissions in LP

Unanswered
Asian black bear posted this in #questions
Messages97 messages
Views0 views
Asian black bearOP
Hey! Wondering if theres a good plugin for allowing players to interact with a specific block / entity thats in an area. worldguard is too bulky for this use, as some of the areas are as small as one block. i need a luckperms compatible plugin that if the player has this node, they can interact with things within these coordinates
Asian black bearOP
block types would also be appreciated
@PM_ME_YOUR_REPO Hello again. Any particular reason why WG doesn't suit your use case?
Asian black bearOP
It’s just way too bulky and I don’t feel like making a few hundred regions
@Asian black bear It’s just way too bulky and I don’t feel like making a few hundred regions
I don’t feel like making a few hundred regions
Fair, but you're gonna be doing a few hundred <whatevers> regardless of what plugin you're using, whether that's a few hundred permissions or a few hundred regions.

It’s just way too bulky
I understand that the ergonomics aren't the best, but you keep saying "bulky". I don't expect you mean performance-wise, considering it's extremely performant, so what exactly do you mean?

***

Ultimately, there really aren't other admin-use protection plugins. WG is pretty much it. I suggest just sucking it up and using it.
Asian black bearOP
My lead dev believes he can create something like what I’m needing, we’re gonna open source it when it’s done. Permission nodes like block_perms.allow_area and block_perms.deny_area with contexts x y and z and an optional x2 y2 and z2
Asian black bearOP
Ooh good point
Maybe parsed directly in the node
allow_area.1-2-3.4-5-6
Idk if that’s possible
also, what you're essentially proposing is a permissions lookup on every single block interact event to see if there is a node for it and if the player has one. This is insanely inefficient.
Asian black bearOP
It would hopefully function the same way WG does just with less steps to reproduce the same effect
Like, I really want to stress here that you're going to reinvent a less performant version of WorldGuard solely because you don't want to set regions, and would instead prefer to manually enter coordinates into LuckPerms.
Like, this is tough love, but this is not a good idea. No part of this plan is well reasoned. It's legit just "I am too lazy to learn and use WorldGuard".

Not trying to talk shit at all. Just trying to be a bit of a voice of reason.
There is a reason WorldGuard has been the single dominant Admin-use protection plugin for a decade and a half, and it's because it is open source and has been refined and perfected, and nothing can even hope to compete.
Asian black bearOP
I really should create and use regions consisting of just one block?
yes
WorldGuard is literally purpose-built for exactly your usecase. And most importantly, it is efficient at scale.
If you really want to ease the process of setting these regions, the approach should be to use the WorldGuard API to write a wrapper tool that your team can use to quickly make all of the appropriate regions. Like, you set your points and then run a single command and it sets the rest of it up, with region name, groups, access lists, whatever you need.
But still use WorldGuard
Asian black bearOP
Alright
You’ve been very helpful (:
Appreciate you knocking some sense into me
I hope so (the helpful comment). And I'm sorry for shooting down your idea. I don't mean it to be harsh or anything. It's just, I can see the situation you're in: "this is tedious and weird, this feels excessive, this can't be performant right? maybe if we build our own tool."

I've been there. But it's coping. None of us are a good enough developer to quickly bang out a tool that will survive production without bugs and with equal or better performance to a plugin that has as long of a pedigree as WorldGuard does.

So yeah. Sorry for being the wet blanket. I just empathize DEEPLY with your situation, and wanna help you hopefully avoid a mountain of issues.
Asian black bearOP
really getting confused with this 😭

regular players cant enter the kitchen or open chests in the kitchen, good
cooks can enter the kitchen, good
cooks cannot open chests in the kitchen, bad

im so confused on this and how to fix it
Loading...