I want to know how to make a custom HUD on my server that will pop up a certain message on the display above the inventory. It will also have to contain the xyz coords of the player, and a random text. Please help me. I am a noob at PHP and I don't know anything about how to code player events or anything like that. I am hoping to learn from the source code but it seems I cannot find something that would do the above. Thanks.
PHP: /** @var Player $p*/$p->sendPopup($p->x, $p->y, $p->z . "Text"); 2nd method PHP: $p->sendTip($p->x, $p->y, $p->z . "text"); I advice you to use Tip because popup is cancelled when player switch items in inventory