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

help plugin error

Discussion in 'Development' started by Levi, Jan 4, 2018.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    error
    Code:
    22:49:32] [Server thread/CRITICAL]: Could not execute task AdvancedKits\tasks\CoolDownTask: Invalid argument supplied for foreach()
    [22:49:32] [Server thread/CRITICAL]: ErrorException: "Invalid argument supplied for foreach()" (EXCEPTION) in "plugins/AdvancedKits-master/src/AdvancedKits/Kit" at line 143
    code where error say
    PHP:
    public function processCoolDown(){

            foreach(
    $this->coolDowns as $player => $min){

                
    $this->coolDowns[$player] -= 1;

                if(
    $this->coolDowns[$player] <= 0){

                    unset(
    $this->coolDowns[$player]);

                }

            }

        }
     
  2. iCirgio

    iCirgio Slime

    Messages:
    92
    GitHub:
    lolnova
    This is not your plugin and you should report it to the offical owner to fix the fault in their plugin
     
  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.