Can you tell me a way to make the text on the sign. Example: if we write {TEXT} will be the words "hello"
Spoiler PHP: public function onSignChange(SignChangeEvent $e){ $tile = $e->getLine();if($tile == "Text"){$tile->setText("Example");}}
Use str replace instated if you want to change text PHP: foreach ($lines as $line) $line = str_replace("{text}","hello",$line)