Hi, how can I do it that foreach player is a sign like Player 1 see on the sign Welcome Player1 and Player 2 see on the sign Welcome Player 2?
JackboyPlay not sure if it is possible without deep digging into the pocketmine's core Easest way is to send personal message to the player by $player->sendMessage
Lol you use PHP: for($i = 0;$i <= 1000;$i++){ if($i === 1000){ $player->sendMessage("welcome Ritch you are the 1000 to click on a sign !"); return; } $example = $i+1; Ect.....
Here to customize dynamic sign text foreach player (PHP5) https://github.com/PEMapModder/pock...llRate/src/aliuly/killrate/Main.php#L473-L497
It really depends on what you define as hacking. To some people, sending data packets is already hacking, since it might be backwards-inompatible.
Can you please show code example? As I see, in the mentioned killrate plugin, for cusomising sign text is used PlayerInteract Event . So user have to interact with the sign to get personal text. But how to implement that without asking user to touch a sign?
Don't do nothing you don't know how it works. If you don't understand how you do this, or how the code by @aliuly works, then don't use it. If you understand it, you can see that you can just use this anywhere you want, not only in PlayerInteractEvent.
The only place where i think it could be properly used is PlayerMoveEvent. If the player close enough to the sign, than send to the player text-update packet. Well, it could be a solution!