How can I get to run a class from another plugin from another plugin? I tried with getinstance but I have not had any results
this time if I achieve it thank you very much! <3 I used another syntax to do it and as I see it is not the same
it's funny why I try it with the getInstance once and it worked for eos I thanked you but now it does not work hahaha The following error appears if I remove the getInstance Spoiler: Error [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\server\DataPacketReceiveEvent' to 'FormAPI v1.0.0': Undefined variable: Server on jojoe77777\FormAPI\FormAPI [01:45:29] [Server thread/CRITICAL]: ErrorException: "Undefined variable: Server" (EXCEPTION) in "CoreGames/src/YunoSiwa/CoreGames/Main" at line 124
$Server refers to your server instance. You can get it with methods like Server::getInstance(), $this->getServer(), etc.
haha not the problem had been caused because I had missed a } and also because what I wanted to execute was not the main class generating a $this on $this making the pl not work thank you for serving me