menu
#2580541 Too few arguments to function NawafPlugin\Entity\rav::__construct(), 2 passed in phar://C:/Users/Dell/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/entity/Entity.php on line 365 and exactly 4 expected

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:28:54 +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: Too few arguments to function NawafPlugin\Entity\rav::__construct(), 2 passed in phar://C:/Users/Dell/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/entity/Entity.php on line 365 and exactly 4 expected
File: plugins/Boss/src/NawafPlugin/Boss
Line: #186
Error level: ArgumentCountError
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\Level $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 981)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 981)
#5 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 981)
#6 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 981)
#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