Plugin Help Silent Chest HELP

Discussion in 'Plugin Help/Development/Requests' started by SinceImDallas, Feb 28, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    SinceImDallas

    So i wanted to start coding a plugin where when you are in a vanished mode and you open a chest it will allow you to open the chest but you will not be able to add or take any items from the chest i am wondering how i would go about coding this ~Thanks (I already have the code to go into vanish and all of that all i need is the code that stops you from interacting with the chest items when in vanish)
     
  2. Offline

    pie_flavor

    @SinceImDallas Listen for a PlayerInteractEvent. Check if they're vanished, right clicking a block, and the clicked block is a chest. Cancel it, but open its inventory for them anyway.
     
Thread Status:
Not open for further replies.

Share This Page