WorldGuardExtraFlags icon indicating copy to clipboard operation
WorldGuardExtraFlags copied to clipboard

Flag to Prevent Villager Trading

Open Strahilchu opened this issue 4 years ago • 6 comments
trafficstars

I've asked this on WorldGuard Github with no response since June.

Looking to see what you guys have to say about this one!

My players complain that people sneak into their bases and use their villagers to trade with. In a server where you use villager trades for your player-shop for economy reasons this is a way of stealing from someone's villagers they worked hard to get good trades from.

I'm amazed that to this day neither WG or WGExtraFlags has this option. I've had to resort to using deny-entry flags on everyone's villager area and I don't think that should be necessary. I hope this is something simple that can be added.

Essentially deny interacting with a villager, no other flags work for this I've tried everything and looked everything up.

Strahilchu avatar Oct 07 '21 13:10 Strahilchu

I've implemented it in my fork, you can check it out here: https://www.spigotmc.org/resources/beta-worldguardextraflags-reborn.96894/

Or in my github page: https://github.com/Invvk/WorldGuardExtraFlags/

Invvk avatar Oct 17 '21 18:10 Invvk

Any change this might get implemented here? The fork mentioned by @Invvk is discontinued.

hmlendea avatar Sep 20 '24 07:09 hmlendea

In general this would require hooking to WorldGuards internals to make it work nicely with other flags. Restricting areas where people can go is easy way to mitigate it. If you want to globally disable it then there are plugins for it. For specific areas where you have control over the villagers, you can just set the offers list to empty.

aromaa avatar Sep 20 '24 10:09 aromaa

I was thinking more like not letting player Mark trade with the villagers in player Josh’s region unless he was granted access to that region (member, owner). Kinda like making the trading halls private and exclusive to the players that own them.

hmlendea avatar Sep 20 '24 12:09 hmlendea

That would fall under the restricting areas part. You can easily block off the area to only allow teleporting inside it. Or you can use doors or buttons and redstone to achieve that. Interacting with item frames requires build access to the region so thats one way to achieve more strict access.

aromaa avatar Sep 20 '24 12:09 aromaa