ivand-sykt / MyAuth

MyAuth - Pocketmine authentication plugin
3 stars 2 forks source link

Declaration error (need to return :bool) #7

Closed ggomezz closed 7 years ago

ggomezz commented 7 years ago

[21:16:34] [Server thread/INFO]: Enabling MyAuth v1.3-dev1 [21:16:34] [Server thread/INFO]: [MyAuth] Plugin initialization... [21:16:34] [Server thread/INFO]: [MyAuth] English has been selected [21:16:34] [Server thread/INFO]: [MyAuth] Initializating YAML DB...

Fatal error: Declaration of MyAuth\Commands\RegisterCommand::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, $label, array $args) must be compatible with pocketmine\command\CommandExecutor::onCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool in phar:///root/plugins/MyAuth (1).phar/src/MyAuth/Commands/RegisterCommand.php on line 9 [21:16:34] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [21:16:34] [Server thread/EMERGENCY]: Please upload the "/root/crashdumps/Mon_Aug_7-21.16.34-UTC_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. [21:16:34] [Server thread/INFO]: Disabling MyAuth v1.3-dev1

This was with build #13 on poggit

ivand-sykt commented 7 years ago

@ggomezz what is your server core and current API version?

ggomezz commented 7 years ago

No idea what server core means and I am running 3.0.0-ALPHA7

ivand-sykt commented 7 years ago

@ggomezz do /version and send output

ivand-sykt commented 7 years ago

@ggomezz I will fix this possibly today (8.08.17)