Greetings all. First off, I apologize in advance if this has been answered elsewhere, but after a good bit of searching I cannot find what I am looking for. I suspect this is because of a massive failure to understand a key concept on my part.
What I am looking to do is be able to execute custom code when an item is either added or removed from a container. I have been searching for the equivalent of ItemAdd and ItemRemove events to try to hook, but haven't found much.
UseCase 1: As the owner of a chest, I want to allow another player to open the chest and view the contents, but be unable to remove the contents.
UseCase 2: As the owner of a chest, I want to be notified via chat when another player places an item in the chest.
Not looking for an end to end solution, just for someone to put me onto the right path. It's obvious I am missing something.
Thanks in advance everyone.