menu
#2822856 Can't use function return value in write context

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-09-10 23:52:14 +0000 UTC

System Information

PHP version: 7.2.19
Operating system: win
System banner: Windows NT ERIS 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Can't use function return value in write context
File: plugins/ItemStacker/src/Eris11dib/ItemStacker/Main
Line: #26
Error level: E_COMPILE_ERROR
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Main extends PluginBase implements Listener{

public $customName = [];

public function onDrop(PlayerDropItemEvent $event){
$item = $event->getItem();
if($item->hasCustomName()){
$this->customName[] = $item->getCustomName();
$item->setNamedTag($this->customName);
unset(array_search($item->getCustomName(), $this->customName));
}
}
}

Loaded Plugins

  • Show

Server Settings

  • Show