menu
#3080601 A void function must not return a value

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-11-08 10:40:52 +0000 UTC

System Information

PHP version: 7.2.18
Operating system: linux
System banner: Linux daemon31-ny 2.6.32-042stab134.8 #1 SMP Fri Dec 7 17:16:09 MSK 2018 x86_64

Error information

Warning: the Market plugin was directly involved in this crash. Please contact the plugin author.
Message: A void function must not return a value
File: plugins/Market_v1.phar/src/market/form/ConfirmForm
Line: #52
Error level: E_COMPILE_ERROR
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
     if($response){
if(!empty($this->getAPI()->categories[$category]->get($data[8]))){
$seller = $this->getAPI()->getPlayer($data[0]);
$sellerName = $data[0];
if($this->option){
$player->sendMessage($this->getAPI()->translateString("confirm.item.collect", [], $player));
}else{
if($this->getPlugin()->getEconomyAPI()->myMoney($player) < $data[5]){
$player->sendMessage($this->getAPI()->translateString("confirm.item.not.money", [], $player));
return true;
}

if($seller instanceof Player){
$this->getPlugin()->getEconomyAPI()->addMoney($seller, $data[5]);
$seller->sendMessage($this->getAPI()->translateString("confirm.item.sell", [$player->getName(), number_format($data[5])], $seller));
}else{
$sellerName = $data[0];
$money = $data[5];
$this->getAPI()->db->query("UPDATE pending SET money = money + '$money' WHERE player = '$sellerName'");
}

Loaded Plugins

  • Show

Server Settings

  • Show