Hi, I have another problem with my first plugin: getPlayers() does not work for me! I am using this code Code: $count = count($this->getServer()->getLevelByName("PVP")->getPlayers()); And every time I am using this my server crashes. Error: Call to a member function getPlayers() on null File: /TwinPVP/src/kjjnetwork/TwinPVP/Main Line: 35 Type: E_ERROR Am I doing something wrong? Thanks at all for your patience with me myst02
Then it has not been loaded yet, and it only loads when you run /mv tp PVP. PHP: $this->getServer()->loadLevel("PVP");