Hi there, so I have been trying to upload an old UHC plugin to my server and I updated the API but everytime I go to put it on my server it crashes and gives me this crash dump error. PHP: Declaration of UHCReload\Main::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $cmd, $label, array $args) must be compatible with pocketmine\plugin\PluginBase::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool
It wont magically work if you only change the api version, the api version is bumped for a reason. The fix is simple, change PHP: onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $cmd, $label, array $args) to PHP: onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool However im pretty sure more error will popup
Ok, i just tried it and this message popped up. Declaration of UHCReload\Main:nCommand(UHCReload\pocketmine\command\CommandSender $sender, UHCReload\pocketmine\command\Command $command, string $label, array $args): bool must be compatible with pocketmine\plugin\PluginBase:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool