I've been for days looking at the crash on my Terminal but still dont know where / how to change anything to solve this problem. Here's the crash: Fatal error: Declaration of ServerAuth\Commands\Commands:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $cmd, $label, array $args) must be compatible with pocketmine\command\CommandExecutor:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool in phar:///home/Swords/plugins/ServerAuth_v2.11.phar/src/ServerAuth/Commands/Commands.php on line 24 [13:35:14] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [13:35:14] [Server thread/EMERGENCY]: Please upload the "/home/Swords/crashdumps/Wed_Aug_23-13.35.14-EDT_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. The api i updated myself , just opening the plugin and changing api's (allways worked). And this time this happens and i dont even think it's from the api. It's something about the commands thats what i see xd , Thanks for anyone that can solve this for me. My big thank you.
You would know what it is already if you had fully read PHP, consider looking into interfaces and abstract /implementing and extending classes or just wait for someone to say give you the code if reading is not your thing
Hey Man. The fix to this is quite simple. But you CANNOT fix it without converting your ServerAuth.phar into source code (as you can't modify .phar files). Im assuming that you're using pocketmine-mp api 3.0.0-ALPHA7. If you would like to fix this, follow the steps given below. * Remove ServerAuth.phar (Please do not do this if you'd not like to follow my steps.) * Get the source code from here: https://github.com/EvolSoft/ServerAuth/archive/master.zip * Unzip it. * cd into ServerAuth-master/ and MOVE the folder 'ServerAuth' to your plugins directory. * MAKE SURE THAT YOU'VE GOT DEVTOOLS FOR API 3.0.0-ALPHA7 INSTALLED. * Open the file: ServerAuth-master/src/ServerAuth/Commands/Commands.php Now, In the file Commands.php, head over to LINE 30. On line 30, you'll be able to see this: PHP: public function onCommand(CommandSender $sender, Command $cmd, $label, array $args) { Now, This is important. You'll have to remove that line and replace it with the following: PHP: public function onCommand(CommandSender $sender, Command $cmd, string $label, array $args) : bool { Now do the same with: - ServerAuth-master/src/ServerAuth/Commands/Login.php at LINE 32 - ServerAuth-master/src/ServerAuth/Commands/Logout.php at LINE 32 - ServerAuth-master/src/ServerAuth/Commands/Register.php at LINE 32 - ServerAuth-master/src/ServerAuth/Commands/Unregister.php at LINE 32 and, - ServerAuth-master/src/ServerAuth/Commands/ChangePassword.php at LINE 31 Oh, and, by the way, make sure that you've added 3.0.0-ALPHA7 to the api list in ServerAuths plugin.yml file. This PROBABLY fixes the issue. I do not give you any guarantee that it will. I hope I've helped you with this and in-case you're still having issues, feel free to message me. I'd be happy to help you out
andddd all you say is, do this then that and that but not why dosent really help anyone learn other then follow instructions, and this "mysterious" fix which somehow magically fixes unknow crashes
You could have made a fork of ServerAuth fixing the issue by the time you finished writing this post.
Oh, Yes, The mysterious fix is for the OP. He's having the issue. I'm just telling him how exactly to solve his issue. It is his purpose to follow the instructions if he wants to get it fixed by himself. I should've rather created a fork out of ServerAuth and modified it myself but I thought it'd be better if he did it by himself. He could learn something and maybe fix the same issues on other plugins as well.
That's not learning anything. I can change my variable names to "lbl" or "l" or "alias" or "a" or anything else, and does your "teaching" still work? You taught someone how to become a robot, and a robot still does not know what's going on.