Solved Simulating a chest open

Discussion in 'Spigot Plugin Development' started by nokoa, May 31, 2016.

  1. I am using Ender Chests and when a player interacts with them I open a specific inventory while canceling the event. This prevents the chest from actually opening (The animation that the chest does while it's open).

    Is there away for me to simulate the chest open animation?

    If so can you show me how?
  2. PlayerInteractEvent then maybe use a runnable to cancel the event after the exact time for the animation and then open your inventory
  3. Unfortunately, I don't believe there's anything within the Spigot API that would allow you to do this.
  4. Yes there is.....
  5. There is? Please show me then.

    You cannot cancel an event after it has already been processed..
  6. After doing some quick Google searches, I came across this.

    • Like Like x 1
    • Agree Agree x 1
  7. Thank you that works !
  8. Please reread what I said:
    Never said it wasn't possible otherwise.
    • Like Like x 1
    • Agree Agree x 1
  9. Whoops. Sorry, my bad.