What is wrong on this file? PHP: <?phpnamespace Server;use pocketmine\plugin\PluginBase;use pocketmine\command\CommandSender;use pocketmine\command\Command;use jojoe77777\FormAPI\SimpleForm;class Main extends PluginBase{public function openHelpUI(Player $player){ $form = new SimpleForm(function (Player $player, int $data=null){$form->-setContent("§rTeleporter");$form->-addbutton ("§3Citybuild");$form->-addbutton("§aFarmwelt");$form->-setbutton("§3Citybuild")$form->-setbutton("§aFarmwelt")}}}
This forum is not a PHP Tester Run your server and see what's the error, and start from there from the looks of it, you should learn PHP Syntax first. You can learn from https://codecademy.com https://sololearn.com if you want a piece of more detailed information you can look at the docs https://php.net
@IchHackeNet First, "->-"??? Why a - after the >? Also, it does work, but the UI won't open ever, exeped you use another plugin to run the code.