menu
#3080203 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 08:12:07 +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: #59
Error level: E_COMPILE_ERROR
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
       $lore = "";
if($this->option === MarketAPI::MARKET_BUY){
$lore .= "§r§7Tem certeza que deseja comprar este item?";
}
if($this->option === MarketAPI::MARKET_SELL){
$lore .= "§r§7Tem certeza que deseja vender este item por 1000 coins.";
}else if($this->option === MarketAPI::MARKET_TAKE){
$lore .= "§r§7Tem certeza que deseja coletar este item?";
}
return $lore;
}

public function addCategoryItems($player, $category, int $page = 0){
$buttons = [];
$auction = yaml_parse_file($this->getPlugin()->getDataFolder() . "categories/$category.yml");
if(!empty($auction)){
$ahItems = [];
foreach($auction as $key => $val) $ahItems[$key] = $val;
foreach($ahItems as $data){
$timeNow = time();

Loaded Plugins

  • Show

Server Settings

  • Show