Vanish No Packet

Vanish No Packet

855k Downloads

Respect Lockette's security (And LWC too, I suppose) while vanished.

Acru opened this issue ยท 6 comments

commented

As in, do not allow vanished players to silently open chests they don't have permission to, as defined by Lockette/LWC.

I had a ticket about this for Lockette on Jul 25, 2012, but it is something you would have to fix. I assume the cause of this is opening the inventory directly, rather than going though bukkit, so that the chest doesn't make a sound.

If available, Lockette has a static function Lockette.isProtected(Block block) to say if a block is protected, or Lockette.isUser(Block block, String playerName, true) to say if a player is allowed to access a block's inventory.

LWC has a non static function plugin.getLWC().findProtection(block) and ways to check it such as plugin.getLWC().canAdminProtection(player, protection), though I know less about LWC's workings.

Alternately, you could disable the silent open feature, for compatibility, or make it silent for admins with special permission only.

commented

Curious as to what your use case is

commented

VNP is an admin tool. If you can't trust your admins...

But either way, the silent chest opening is a disabled-by-default feature controlled by a permission. I'll think about adding support, but it seems silly since VNP is designed for admins, and silent chest opening only happens while vanished which is presumably while doing adminly things.

commented

I don't know much about VNP, close the issue if you like, but I've had two tickets in regards to this so thought I ought to forward the issue personally.

Perhaps people are using the plugin in ways that weren't intended?

commented

Essentially if you don't want to give your admins to snoop chests, don't give them that ability. :)

commented

To clarify, you can only open a chest silently while vanished if you have a specific permission, separate from the permission to vanish?

commented

Yup.