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