menu
#3071175 Cannot use isset() on the result of an expression (you can use "null !== expression" instead)

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-11-06 18:13:06 +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: Cannot use isset() on the result of an expression (you can use "null !== expression" instead)
File: plugins/Market_v1.phar/src/market/menu/Confirm
Line: #70
Error level: E_COMPILE_ERROR
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
       $item = $inventory->getItem(4);
$category = $this->getAPI()->getItemCategory($item);
$data = $item->getNamedTag()->getIntArray("Info");

/**if(!$itemClickedOn->isNull()){
$inventory->onClose($player);
}*/

if($itemClickedOn->getCustomName() === "§r§aAceitar"){
if(isset($this->getAPI()->categories[$category]->get($data[8]))){
$seller = $this->getAPI()->getPlayer($data[0]);
$sellerName = $data[0];
if(!$this->collect){
if($this->getPlugin()->getEconomyAPI()->myMoney($player) < $data[5]){
$player->sendMessage("Você não tem dinheiro suficiente");
return true;
}

if($seller instanceof Player){
$this->getPlugin()->getEconomyAPI()->addMoney($seller, $data[5]);

Loaded Plugins

  • Show

Server Settings

  • Show