Added __toString() to Player, Block and Item classes & added protocol order enforcement after login

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-07 17:04:04 +01:00
parent 4d05d7da0d
commit e7d56a837f
3 changed files with 60 additions and 2 deletions

View file

@ -123,6 +123,10 @@ class Item{
}
}
final public function __toString(){
return $this->name ." (".$this->id.":".$this->meta.")";
}
public function getDestroySpeed(Block $block, Player $player){
return 1;
}