Chestlock

Discussion in 'Plugin Development' started by zJanny, Oct 8, 2019.

  1. Offline

    zJanny

    Hello,
    I was wondering how to make /chestlock and /chestunlock command
    so i can lock the chest for other players
     
  2. Online

    robertlit

    You could cancel the chest opening event.
     
  3. Offline

    GodCipher

    With the PlayerInteractEvent.

    Just cancel to rightclick on the block type chest
     

Share This Page