how can i do like Code: if(cmd.getname().equalsIgnoreCase("some command name") && sender instanceof Player) in pocketmine? i just need the && thing. like PHP: if($thing = "give me!")&&(!($player->hasPlayedBefore(){} please help!
Turn both strings to lowercase using strtolower() and compare if the values are equal using ===. Both && and and are supported in PHP. And if you aren't sure, please read the PHP docs.
Looking at the example you have given I think you need to go over PHP syntax before attempting to create a plugin.