Hello, does anyone know how to fix this error? Link: https://github.com/Ad5001/FloatingTexts/tree/f18ee6266cca30d6f5151a4eea9351ecd57f486b Erreur: Code: [19:22:56] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\Server::getScheduler()" (EXCEPTION) in "FloatingTexts-master/src/Ad5001/FloatingTexts/Main" at line 22 [19:22:56] [Server thread/DEBUG]: #0 src/pocketmine/plugin/PluginBase(108): Ad5001\FloatingTexts\Main->onEnable() [19:22:56] [Server thread/DEBUG]: #1 src/pocketmine/plugin/PluginManager(566): pocketmine\plugin\PluginBase->setEnabled(boolean 1) [19:22:56] [Server thread/DEBUG]: #2 src/pocketmine/Server(1918): pocketmine\plugin\PluginManager->enablePlugin(Ad5001\FloatingTexts\Main object) [19:22:56] [Server thread/DEBUG]: #3 src/pocketmine/Server(1904): pocketmine\Server->enablePlugin(Ad5001\FloatingTexts\Main object) [19:22:56] [Server thread/DEBUG]: #4 src/pocketmine/Server(1698): pocketmine\Server->enablePlugins(integer 1) [19:22:56] [Server thread/DEBUG]: #5 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\cedric PC\Desktop\PocketMine\PocketMine-MP\, string C:\Users\cedric PC\Desktop\PocketMine\PocketMine-MP\plugins\) [19:22:56] [Server thread/DEBUG]: #6 C:/Users/cedric PC/Desktop/PocketMine/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users/cedric PC/Desktop/PocketMine/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
First of all, bolding your text doesn't make it easier to read. Second, your plugin is outdated. It's trying to use the outdated method $this->getServer()->getScheduler()... Basically, just don't get the server object, and instead get the scheduler directly from the PluginBase. I'm fairly sure that the plugin will have several other problems in addition to this one.
If you are too lazy to update the plugin yourself, you can use my plugin https://github.com/thebigsmileXD/FloatingTextParticles (but it has no changing text task or something like that)