How can I get any players name on a string Like $pname Code if($item->getName() === C::clear . ".$pname."){
Καλησπέρα Im trying to use transaction event or click event... I have added custom name on the item which if a player is online there will be 1 item with players name you can check my video on yt "PixelzChris" so you can see what im trying to do
For reference: You can clean the item name and then use $server->getPlayerExact($name) to get the Player instance. PHP: $name = TextFormat::clean($item->getName());