1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

removeWindow

Discussion in 'Development' started by Zoom601, Sep 11, 2017.

  1. Zoom601

    Zoom601 Silverfish

    Messages:
    21
    Hello!

    I made window for chest and i want if the player take any item from the chest will close the chest automatically i used:
    PHP:
    $player->removeWindows($tile->getInventory());
    but it is crashed me from minecraft:(
    is there anyway to fix it?
     
    Last edited: Sep 11, 2017
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    There Is not variable getInventory , use getInventory() instead
     
  3. Zoom601

    Zoom601 Silverfish

    Messages:
    21
    oh sorry i mean getInventory() i type like this in the plugin but i forget type () here xD
     
  4. xXiKhalediXx

    xXiKhalediXx Spider

    Messages:
    8
    GitHub:
    Khaled098
    Dude... You type removeWindows and it should be removeWindow
     
    Levi, Teamblocket and Kyd like this.
  5. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    $player->removeWindow($tile->getInventory());
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.