mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Added __toString() to Player, Block and Item classes & added protocol order enforcement after login
This commit is contained in:
parent
4d05d7da0d
commit
e7d56a837f
3 changed files with 60 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue