Recent Discussions

Blocking certain groups from interacting with certain blocks

Unanswered
American black bear posted this in #questions
Messages31 messages
Views0 views
American black bearOP
Is there a way to block certain groups (I made a few with luckperms, but I dunno if it's needed) from interacting with some blocks? For example: a group 'blacksmith' is allowed to interact with anvils and other groups not, but all groups can do other things with anvils
I'm using arclight for the record
mmm arclight is iffy
the permission managers entirely explode when on hybrids
not sure it’s possible
American black bearOP
I realized that. But maybe you've got some idea
Using bukkit/spigot plugin
Or maybe mod
i doubt either would work
modded and plugin would just override each other
American black bearOP
I tried using worldguard and it partially worked
I've set on-interact=deny and made an exception for admins and it worked, but the game recognizes breaking as interacting too
So i could place it, but not break it
American black bearOP
And ofc not interact with it
@American black bear I've set on-interact=deny and made an exception for admins and it worked, but the game recognizes breaking as interacting too
Yeah, interact fires on the first touch before breaking begins. Kinda just how the game is designed. I don't think you can have break without interact.

What's your use case? Describe the system you're trying to build.
American black bearOP
I want to make an rp server where people choose their class and those classes have some buffs and nerfs, for example: someone picked a miner, they get buffs like faster mining. They can use a normal furnace but can't use a blasting furnace or anvil or craft armor, they need to go to the blacksmith which can make those and buy it from him
@American black bear I want to make an rp server where people choose their class and those classes have some buffs and nerfs, for example: someone picked a miner, they get buffs like faster mining. They can use a normal furnace but can't use a blasting furnace or anvil or craft armor, they need to go to the blacksmith which can make those and buy it from him
It might be worthwhile making a small Java plugin that catches interact events for certain blocks, checks the permissions node/group, and if not in the right group / not having the right perm, cancels the event. Super simple to do.
hmmm
I'm actually wondering if there's a way to get a block break event without an interact event now.
@American black bear Because I don't know where to start
Is learning plugin dev something you want to do? If so, then sure, I can point you in the right direction. If not, might be easier to just post in #freelancing and offer someone a bit of cash to make it for you.
American black bearOP
It would be easier in the future if I learned plugin dev
fair enough. one moment while I dredge up some beginning materials.
@American black bear It would be easier in the future if I learned plugin dev
do you have any experience with programming at all?
American black bearOP
I made some scripts in js and php for websites
Loading...