It's me again >_< So, I've finished Item Spawner for BedWars... But now I have troubleshooting with the "Shop". How to check if an Player has an specific Item and then remove it? PHP: $sender->getInventory()->getId(336)->getCount(8)// $sender is the guy that wrote command, code right... Maybe wrong lol And now remove that item...
Basically, like @KubixQ has said. The IF statments do most of the work. take a look at these These will help. IF STATMENTS http://php.net/manual/en/control-structures.if.php ELSEIF STATMENTS http://php.net/manual/en/control-structures.elseif.php