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

Help with parent::__construct()

Discussion in 'Facepalm' started by xCool_GB, Aug 7, 2018.

  1. xCool_GB

    xCool_GB Shog Chips

    Messages:
    0
    GitHub:
    xCoolGB
    Hi, I've been inactive without developing plugins like 5 months, and when I returned, everything changed. I need help with this parent, due to some several errors that it sends to me. (Sorry for bad English)
    PHP:
        public function __construct(Main $pluginPosition $position$id$name) {
            
    $this->plugin $plugin;
            
    $this->position $position;
            
    $this->name $name;
            
    $this->id $id;
            
    parent::__construct($plugin$position$id$name);
        }
     
  2. SkySeven

    SkySeven Baby Zombie

    Messages:
    145
    GitHub:
    SkySevenMC
    just remove parent::__construct
     
  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.