Closed HotDogMastah closed 4 years ago
if($itemclicked->getid() === Item::get(Item::DIAMOND)){
Strict comparison between an integer and an Item, yep, definitely a reason to put this as an issue on the PocketMine repo!
Thanks, but this issue tracker is not intended for support requests. Please read the guidelines on submitting an issue.
Nothing seems to be happening theres no error also, the invmenu is already in the varions folder but nothing is still happening
`<?php
namespace code\villagertrade;
use pocketmine\Player;
use pocketmine\plugin\PluginBase;
use pocketmine\command\Command; use pocketmine\command\CommandSender;
use pocketmine\item\Item;
use pocketmine\event\Listener;
use muqsit\invmenu\InvMenu; use muqsit\invmenu\InvMenuHandler;
use pocketmine\inventory\transaction\action\SlotChangeAction; use muqsit\invmenu\transaction\InvMenuTransaction;
class Main extends PluginBase implements Listener {
}`