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

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Direct
Report date: 2021-04-08 06:39:01 +0000 UTC
Server uptime: 0 days 0 hours 33 minutes 16 seconds

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux 4164091c0429 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) 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 (1).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 (1).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/ElementalFactions-master/src/core/level/Explosion(152): pocketmine\event\Event->call()
#5 plugins/ElementalFactions-master/src/core/entity/task/ExplosionQueueTask(87): core\level\Explosion->explodeB()
#6 pmsrc/src/pocketmine/scheduler/TaskHandler(137): core\entity\task\ExplosionQueueTask->onRun(integer 39883)
#7 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 39883)
#8 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 39883)
#9 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 39883)
#10 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#11 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#12 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#13 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /home/minecraft/multicraft/servers/server291979/, string[56] /home/minecraft/multicraft/servers/server291979/plugins/)
#14 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#15 pmsrc(11): require(string[108] phar:///home/minecraft/multicraft/servers/server291979/PMMP-Latest-Stable.phar/s)

Loaded Plugins

  • Show

Server Settings

  • Show