menu
#2582004 Can't use method return value in write context

Submitted by PocketMine-MP 3.8.6

General information

Version: 3.8.6
Git commit: 1bfd6f2a
Plugin involvement: Direct
Report date: 2019-07-12 05:14:37 +0000 UTC

System Information

PHP version: 7.2.9
Operating system: linux
System banner: Linux BH21 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Can't use method return value in write context
File: plugins/LuckyBlock/src/NawafPlugin/LuckyBlock
Line: #212
Error level: E_COMPILE_ERROR
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
                        $event->setBaseDamage(8);
$packet = new AddEntityPacket();
$packet->type = 93; // LIGHTNING_BOLT
$packet->eid = \pocketmine\entity\Entity::$entityCount++;
$packet->metadata = [];
$packet->motion = new Vector3(0, 0, 0);
$packet->yaw = $event->getEntity()->getYaw();
$packet->pitch = $event->getEntity()->getPitch();
$packet->position = $event->getEntity()->getPosition()->asVector3();
foreach($this->getServer()->getLevelByName($this->map["1"]["name"])->getPlayers() as $event->getEntity()){
$event->getEntity()->dataPacket($packet);
return true;
}
}
}
}
}
}

public function onPlace(BlockPlaceEvent $e){

Loaded Plugins

  • Show

Server Settings

  • Show