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

Custom Block - Error

Discussion in 'Help' started by FELQQZ, Jan 7, 2020.

  1. FELQQZ

    FELQQZ Spider

    Messages:
    6
    Error:
    [21:44:37] [Server thread/CRITICAL]: Error: "Access to undeclared static property: pocketmine\block\Block::$list" (EXCEPTION) in "plugins/test/src/test/MainClass" at line 13

    Line 13:
    Block::$list[201] = PurpurBlock::class;

    Thx for help !
     
    Last edited: Jan 7, 2020
  2. Gianluxx

    Gianluxx Slime

    Messages:
    94
    GitHub:
    Gianluxx
    What are you trying to do with that line?
     
  3. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Do
    PHP:
    BlockFactory::registerBlock(new PurpurBlock());
     
  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.