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

error particles

Discussion in 'Help' started by WylSmart, Feb 5, 2021.

  1. WylSmart

    WylSmart Slime

    Messages:
    93
    api 2.0.0

    Tell me how to fix it? > >

    [21:12:47] [Server thread/CRITICAL]: Error: "Call to a member function addParticle() on null" (EXCEPTION) in "/plugins/TopPlayers(2).phar/src/AlexBrin/aTopPlayers" at line 83

    PHP:
            /**
             * @param string $type
             */
            
    private function create($type) {
                
    $coords $this->config['coords'][$type];
                
    $vector3 = new Vector3($coords['x'], $coords['y'], $coords['z']);
                
    $list $this->sort($type);
                
    $this->particles[$type] = new FloatingTextParticle($vector3$list$this->config[$type.'Title']);
                
    $this->getServer()->getLevel($this->config['coords'][$type]['level'])->addParticle($this->particles[$type]);
            }
     
  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.