public function getCommands(SR_Player $player) { $commands = parent::getCommands($player); if (false !== $player->getInvItemByName('Shovel', false, false)) { $commands[] = 'dig'; } return $commands; }
public function getCommands(SR_Player $player) { $commands = parent::getCommands($player); $commands[] = 'grab'; return $commands; }