OK, for some reason if I unload a loaded world, the server *sometimes* crashes. Its the evil PHP: getChunk() on null Error ......... I tried kicking everyone on the map and removing all the entities - and doing nothing. It still crashes #Somtimes !!! This is also a common problem apparently (#ManyWorlds) Any way to fix dis? Thanks
It's the fault of the Owner of the ManyWorlds plugin, he must set a default value when worlds are null, so the process aborts itself or something.
No and no. This is the code that does the unload: PHP: if (!$this->getServer()->isLevelLoaded($level)) { $sender->sendMessage("[MW] Level $level is not loaded."); continue; } $world = $this->getServer()->getLevelByName($level); if ($world === null) { $sender->sendMessage("[MW] Unable to get $level"); continue; } if (!$this->getServer()->unloadLevel($world,$force)) { $sender->sendMessage("[MW] Unable to unload $level. Try -f"); continue; } $sender->sendMessage("[MW] $level unloaded."); So actually, it does check if $world is null. Also, it is only calling the API unloadLevel method. What is more problematic is that I can't consistently get the error. In fact, right now, I have been unloading levels willy nilly without crashes...