Awzaw/LockIt

API?

Opened this issue · 5 comments

I was wondering if there is any api to this. Ive fixed the old auto door plugin and i want to make the auto door plugin work with this, so if a door is locked it wont automaticly open the door. unless they are holding the key.

Awzaw commented

What priority is PlayerInteractEvent set to in autodoor? Try setting it to HIGH so it will happen later than Lockit which should be able to cancel the event. There's a glitch with wooden doors that prevents me from locking them, but I hope to sort that out soon.

AutoDoor works by when the player is next to the door it opens, but i might make a AutoDoorEvent

Awzaw commented

Can you link to the code for autodoor?

Awzaw commented

Added isLockedByLockit(int $x, int $y, int $z, string $levelname): bool
That should allow you to check if a door is locked by lockit, but you might want to add multiworld support for autodoor.