TARDIS

TARDIS

228k Downloads

Improvement idea for lock_containers preference

Technoguyfication opened this issue ยท 0 comments

commented

Describe the feature request
Hello! A while back you added the player preference to lock containers, but it seems to be locking companions out of containers too. I was wondering if it'd be possible to allow companions container access, but deny non-companions.

I can think of a way to accomplish this with WorldGuard, without requiring an extra interact listener.

  1. Instead of making companions region members, make them region owners instead.
  2. Non-companions who walk in will be added as region members temporarily.
  3. Because the lock_containers preference sets container access to deny for members, it will prevent non-companions from accessing containers, but if companions are added as region owners instead they'll still be able to open containers.