PHP: Server::dispatchCommand(CommandSender $sender, string $commandLine) Example PHP: // Context of PluginBase$player = $this->getServer()->getPlayer("Steve");$this->getServer()->dispatchCommand($player, "/me I love this server");
You would need to store the sign x, y, z and level somewhere depend on you, i perfer .txt file Then on player interact event, check if block is sign and it's x, y, z and level is exists in the place(file) where you store them, then use primus code