menu
#4530938 Call to a member function setAutoSave() on null

Submitted by PocketMine-MP 3.15.0

General information

Version: 3.15.0
Git commit: a498b041
Plugin involvement: Direct
Report date: 2020-09-16 01:22:50 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux Shosting 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64

Error information

Warning: the SkyWarsForPE plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function setAutoSave() on null
File: plugins/SkyWarsForPE.phar/src/larryTheCoder/arena/Arena
Line: #161
Error level: Error
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
	/**
* @return Level|null
*/
public function getLevel(): ?Level{
if($this->levelBusy) return null; // Avoid some unwanted world generation.

Utils::loadFirst($this->arenaWorld, true);

$level = Server::getInstance()->getLevelByName($this->arenaWorld);
$level->setAutoSave(false);

return $level;
}

/**
* Forcefully reset the arena to its original state.
*/
public function resetArena(){
$this->getDebugger()->log("[Arena]: Force reset to original state...");

#0 plugins/SkyWarsForPE.phar/src/larryTheCoder/arena/Arena(494): larryTheCoder\arena\Arena->getLevel()
#1 plugins/SkyWarsForPE.phar/src/larryTheCoder/arena/api/task/CompressionAsyncTask(111): larryTheCoder\arena\Arena->larryTheCoder\arena\{closure}()
#2 src/pocketmine/scheduler/AsyncPool(319): larryTheCoder\arena\api\task\CompressionAsyncTask->onCompletion(object pocketmine\Server)
#3 src/pocketmine/Server(2395): pocketmine\scheduler\AsyncPool->collectTasks()
#4 src/pocketmine/Server(2154): pocketmine\Server->tick()
#5 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1588): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[9] /root/sv/, string[17] /root/sv/plugins/)
#8 src/pocketmine/PocketMine(304): pocketmine\server()
#9 (11): require(string[64] phar:///root/sv/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies