I have been making a plugin for pets. So far all works good except that I need to be able to tag a pet by it's ID so I can remove it from the world. The plugin is here: https://github.com/thelucyclub/Pets
Why don't you just use PHP: Entity::close();# orEntity::despawnFromAll();# or# RemoveEntityPacket If you wan't to set owner of entity, I suggest to create a new class and implement function getOwner(); Or you can just set your own variable inside entity e.g. PHP: $entity->owner = $player; Although that's more like hacking.