Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Block open chest

Comments in 'Plugin Development' started by cake23, May 12, 2016.

  1. cake23
    Offline

    cake23 Active Member

    Joined:
    Aug 10, 2015
    Posts:
    124
    Minecraft User:
    TheEnd
    How can, if a player open a chest,block it? Or how can I cancel it? (So that no one can open chests anymore)
    Thanks! :D
  2. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    PHP:
    public function onOpen(InventoryOpenEvent $event){
    $event->setCancelled();
    }
    applqpak and cake23 like this.
  3. cake23
    Offline

    cake23 Active Member

    Joined:
    Aug 10, 2015
    Posts:
    124
    Minecraft User:
    TheEnd
    Thanks, I will try it out! Danke <3
    PaulchenHD and MyNameIsTriXz like this.
  4. PaulchenHD
    Offline

    PaulchenHD Active Member

    Joined:
    Jan 17, 2016
    Posts:
    111
    Minecraft User:
    Paulchen_HD
    " Danke <3 " - sweet :D <3 | süß :3
    cake23 likes this.

Share This Page

Advertisement