Making a vanish plugin and I found out about PHP: $sender->setDataFlag(Entity::DATA_FLAGS, Entity::DATA_FLAG_INVISIBLE, false); But as the sender instance of Player and not entity it doesn't work so how could I get it to work?
It does work, Player extends Human extends Creature extends Living extends Entity. The following code un-vanishes the sender PHP: $sender->setDataFlag(Entity::DATA_FLAGS, Entity::DATA_FLAG_INVISIBLE, false); If you change the third argument to true, it vanishes the sender.