mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-11 22:08:42 +00:00
Added proper Entity->__toString()
This commit is contained in:
parent
eee7e659e9
commit
60a576e541
@ -1072,4 +1072,8 @@ abstract class Entity extends Position implements Metadatable{
|
|||||||
$this->server->getEntityMetadata()->removeMetadata($this, $metadataKey, $plugin);
|
$this->server->getEntityMetadata()->removeMetadata($this, $metadataKey, $plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __toString(){
|
||||||
|
return (new \ReflectionClass($this))->getShortName() . "(".$this->getID().")";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user