Why is it not changing?

Discussion in 'Development' started by Mespeczek, Jun 29, 2018.

  1. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
    Hi
    I need Help because plugin don't change the number of current
    PHP:
    $this->arena = new Config($this->getDataFolder() . "/arenas/" $levelname ".yml"Config::YAML);
    PHP:
    if($this->arena->get("buildtime")==0)
                        {
                            
    $this->arena->set("current"$this->arena->get("current") + 1);
     
  2. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    53
    GitHub:
    EmirhanWSD
    You must save.

    PHP:
    // +1
    $this->arena->save();
     
  3. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    53
    GitHub:
    EmirhanWSD
    Use this.

    $arena = $this->arena;
    $arena->set();
    $arena->save();
     
  4. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
    I have this[​IMG]
     

Share This Page

  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.