menu
#4774597 Argument 1 passed to czechpmdevs\multiworld\api\WorldGameRulesAPI::getLevelGameRules() must be an instance of pocketmine\level\Level, null given

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-22 22:42:22 +0000 UTC
Server uptime: 0 days 0 hours 6 minutes 28 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux eff20409-1b61-4feb-82e9-0b6267dc2ad9 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the MultiWorld plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to czechpmdevs\multiworld\api\WorldGameRulesAPI::getLevelGameRules() must be an instance of pocketmine\level\Level, null given
File: plugins/MultiWorld(4).phar/src/czechpmdevs/multiworld/api/WorldGameRulesAPI
Line: #44
Error level: TypeError
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
 */
class WorldGameRulesAPI {


/**
* @param Level $level
*
* @return array
*/
public static function getLevelGameRules(Level $level): array {
$levelProvider = $level->getProvider();
if(!$levelProvider instanceof BaseLevelProvider) {
return self::getDefaultGameRules();
}

$compound = $levelProvider->getLevelData()->getCompoundTag("GameRules");

if(!$compound instanceof CompoundTag) {
$levelProvider->getLevelData()->setTag(new CompoundTag("GameRules", []));
$compound = $levelProvider->getLevelData()->getCompoundTag("GameRules");
#0 plugins/MultiWorld(4).phar/src/czechpmdevs/multiworld/EventListener(235): czechpmdevs\multiworld\api\WorldGameRulesAPI::getLevelGameRules(NULL )
#1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): czechpmdevs\multiworld\EventListener->onExplode(object pocketmine\event\entity\EntityExplodeEvent)
#2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object czechpmdevs\multiworld\EventListener, object pocketmine\event\entity\EntityExplodeEvent)
#3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityExplodeEvent)
#4 plugins/ArtisanCore_25_2-2-1-1(1)(1)(3)(2)(4).phar/src/core/level/Explosion(156): pocketmine\event\Event->call()
#5 plugins/ArtisanCore_25_2-2-1-1(1)(1)(3)(2)(4).phar/src/core/entity/task/ExplosionQueueTask(44): core\level\Explosion->explodeB()
#6 pmsrc/src/pocketmine/scheduler/TaskHandler(137): core\entity\task\ExplosionQueueTask->onRun(integer 7725)
#7 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 7725)
#8 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 7725)
#9 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 7725)
#10 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#11 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#12 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#13 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#14 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#15 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show