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

Help me please set()

Discussion in 'Plugin Help' started by DemureTitan, Jan 24, 2019.

  1. DemureTitan

    DemureTitan Creeper

    Messages:
    4
    $cfg1 = $this->cfg->get("cfg1");
    $cfg1->set("Arena", "Enable");
    Error = Call to a member function set() in string

    Helpme please
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    $config = $this->cfg;
    $config->setNested("Arena", "Enable");
    $config->save();

    Try that. It might work. :)
     
    Muqsit likes this.
  3. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    You're trying to call the set method on the string $cfg1
     
  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.