menu
#2468679 Return value of BlockHorizons\BlockSniper\brush\BaseShape::getLevel() must be an instance of pocketmine\level\Level, null returned

Submitted by PocketMine-MP 3.8.4

General information

Version: 3.8.4
Git commit: a42f68d3
Plugin involvement: Direct
Report date: 2019-06-12 07:26:16 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux a313065fd3d2 4.4.0-148-generic #174-Ubuntu SMP Tue May 7 12:20:14 UTC 2019 x86_64

Error information

Warning: the BlockSniper plugin was directly involved in this crash. Please contact the plugin author.
Message: Return value of BlockHorizons\BlockSniper\brush\BaseShape::getLevel() must be an instance of pocketmine\level\Level, null returned
File: plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/brush/BaseShape
Line: #118
Error level: TypeError
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
		return $touchedChunks;
}

/**
* Returns the level the shape is made in.
*
* @return Level
*/
public function getLevel() : Level{
return Server::getInstance()->getLevel($this->level);
}

/**
* Returns the name of the shape.
*
* @return string
*/
public abstract function getName() : string;

/**
#0 plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/brush/async/tasks/BrushTask(107): BlockHorizons\BlockSniper\brush\BaseShape->getLevel()
#1 src/pocketmine/scheduler/AsyncPool(319): BlockHorizons\BlockSniper\brush\async\tasks\BrushTask->onCompletion(object pocketmine\Server)
#2 src/pocketmine/Server(2563): pocketmine\scheduler\AsyncPool->collectTasks()
#3 src/pocketmine/Server(2335): pocketmine\Server->tick()
#4 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#5 src/pocketmine/Server(1774): pocketmine\Server->start()
#6 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#7 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show