Mhhh i want to know how to make join signs for a minigame but everytime i try it dosent work i am not quite sure if that the way i have to do it, can someone please tell me or post the right way Thank You
You need to define what a game is. It is not as simple as a sign. It involves the management of games.
The basic code to see if a sign has a specific text on a certain line is PHP: public function onInteract(PlayerInteractEvent $event) { $player = $event->getPlayer(); $sign = $event->getPlayer()->getLevel()->getTile($event->getBlock()); if($event->getBlock()->getId() == 63 or $event->getBlock()->getId() == 68) { if($sign instanceof Sign) { $signtext = $sign->getText(); if(TextFormat::clean($signtext[0]) === "[1v1]") {//Change "[1v1]" to what ever you want to detect on the first line of the sign //Do stuff here } } } }