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