Added proper Entity->__toString()

This commit is contained in:
Shoghi Cervantes 2014-08-02 17:48:56 +02:00
parent eee7e659e9
commit 60a576e541

View File

@ -1072,4 +1072,8 @@ abstract class Entity extends Position implements Metadatable{
$this->server->getEntityMetadata()->removeMetadata($this, $metadataKey, $plugin);
}
public function __toString(){
return (new \ReflectionClass($this))->getShortName() . "(".$this->getID().")";
}
}