menu
#2580537 Argument 1 passed to NawafPlugin\Entity\rav::__construct() must be an instance of pocketmine\level\format\FullChunk, instance of pocketmine\level\Level given

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-07-11 16:26:37 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT DESKTOP-NPO10HF 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: the Boss plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to NawafPlugin\Entity\rav::__construct() must be an instance of pocketmine\level\format\FullChunk, instance of pocketmine\level\Level given
File: plugins/Boss/src/NawafPlugin/Boss
Line: #186
Error level: TypeError
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
	public $length = 0.25;
public $height = 0.25;
//protected $gravity = 0.03;
//protected $drag = 0.01;

public $players;

public $plugin;

public function __construct(\pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, \pocketmine\Player $players, \NawafPlugin\Boss $plugin){

$this->players = $players;
$this->plugin = $this->plugin;
parent::__construct($chunk, $nbt, $players,$plugin);
}


public function getName() : string{
return "rav";
}
#0 src/pocketmine/entity/Entity(365): NawafPlugin\Entity\rav->__construct(pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
#1 plugins/Boss/src/NawafPlugin/Boss(101): pocketmine\entity\Entity::createEntity(string rav, pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
#2 plugins/Boss/src/NawafPlugin/Boss(161): NawafPlugin\Boss->task()
#3 src/pocketmine/scheduler/TaskHandler(159): NawafPlugin\boos->onRun(integer 1441)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1441)
#5 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1441)
#6 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 1441)
#7 src/pocketmine/Server(2334): pocketmine\Server->tick()
#8 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1774): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Dell\Desktop\PocketMine-MP\, string C:\Users\Dell\Desktop\PocketMine-MP\plugins\)
#11 (1): require(string phar://C:/Users/Dell/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show