Added block info to /give command

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-02 16:19:31 +01:00
parent 34db027ffd
commit ad98fbf380

View File

@ -200,7 +200,8 @@ class BlockAPI{
}
if(($player = $this->server->api->player->get($username)) !== false){
$this->drop($player->entity->x - 0.5, $player->entity->y, $player->entity->z - 0.5, $block, $meta, $amount);
console("[INFO] Giving ".$amount." of ".$block.":".$meta." to ".$username);
$b = BlockAPI::get($block, $meta);
console("[INFO] Giving ".$amount." of ".$b->getName()." (".$block.":".$meta.") to ".$username);
}else{
console("[INFO] Unknown player");
}