{"action":"created","issue":{"url":"https://api.github.com/repos/ImagicalMine/ImagicalMine/issues/904","repository_url":"https://api.github.com/repos/ImagicalMine/ImagicalMine","labels_url":"https://api.github.com/repos/ImagicalMine/ImagicalMine/issues/904/labels{/name}","comments_url":"https://api.github.com/repos/ImagicalMine/ImagicalMine/issues/904/comments","events_url":"https://api.github.com/repos/ImagicalMine/ImagicalMine/issues/904/events","html_url":"https://github.com/ImagicalMine/ImagicalMine/issues/904","id":133417976,"number":904,"title":"ImagicalMine 0.13 client crashes 0.14 server","user":{"login":"TheDragonRing","id":16874139,"avatar_url":"https://avatars.githubusercontent.com/u/16874139?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDragonRing","html_url":"https://github.com/TheDragonRing","followers_url":"https://api.github.com/users/TheDragonRing/followers","following_url":"https://api.github.com/users/TheDragonRing/following{/other_user}","gists_url":"https://api.github.com/users/TheDragonRing/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDragonRing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDragonRing/subscriptions","organizations_url":"https://api.github.com/users/TheDragonRing/orgs","repos_url":"https://api.github.com/users/TheDragonRing/repos","events_url":"https://api.github.com/users/TheDragonRing/events{/privacy}","received_events_url":"https://api.github.com/users/TheDragonRing/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-13T09:42:51Z","updated_at":"2016-02-13T11:41:30Z","closed_at":"2016-02-13T11:00:31Z","body":"Find the original post for this here: http://forums.imagicalmine.me/threads/im-crashing-help.223/\r\n\r\nWhen a 0.13.1 (not sure about other 0.13 versions) player/client tries joining a 0.14 server it crashes the whole server with this error message:\r\n\r\n[16:01:32] critical> TypeError: \"Return value of pocketmine\\Player::getDisplayName() mus t be of the type string, null returned\" (EXCEPTION) in \"/src/pocketmine/Player\" at line 566\r\n[16:01:32] debug> #0 /src/pocketmine/network/RakLibInterface(104): pocketmine\\Player->ge tLeaveMessage(boolean)\r\n[16:01:32] debug> #1 /src/raklib/server/ServerHandler(123): pocketmine\\network\\RakLibInt erface->closeSession(string 127.0.0.1:54010, string client disconnect)\r\n[16:01:32] debug> #2 /src/pocketmine/network/RakLibInterface(83): raklib\\server\\ServerHa ndler->handlePacket(boolean)\r\n[16:01:32] debug> #3 /src/pocketmine/network/Network(156): pocketmine\\network\\RakLibInte rface->process(boolean)\r\n[16:01:32] debug> #4 /src/pocketmine/Server(2495): pocketmine\\network\\Network->processIn terfaces(boolean)\r\n[16:01:32] debug> #5 /src/pocketmine/Server(2252): pocketmine\\Server->tick(boolean)\r\n[16:01:32] debug> #6 /src/pocketmine/Server(2132): pocketmine\\Server->tickProcessor(bool ean)\r\n[16:01:32] debug> #7 /src/pocketmine/Server(1751): pocketmine\\Server->start(boolean)\r\n[16:01:32] debug> #8 /src/pocketmine/PocketMine(452): pocketmine\\Server->__construct(poc ketmine\\CompatibleClassLoader object, pocketmine\\utils\\MainLogger object, string phar:// C:\\Users\\Ariffin\\Desktop\\14.0 Server\\ImagicalMine-IC.phar/, string C:\\Users\\Ariffin\\Desk top\\14.0 Server\\, string C:\\Users\\Ariffin\\Desktop\\14.0 Server\\plugins\\)\r\n[16:01:32] debug> #9 (1): require_once(string phar://C:/Users/Ariffin/Desktop/14.0 Serve r/ImagicalMine-IC.phar/src/pocketmine/PocketMine.php)\r\n[16:01:32] critical> [Network] Stopped interface pocketmine\\network\\RakLibInterface due to Return value of pocketmine\\Player::getDisplayName() must be of the type string, null returned\r\n[16:01:35] system> [/127.0.0.1:54010] logged out due to Login timeout\r\n\r\nI reckon that this means there is a problem with:\r\n\r\npublic function getDisplayName(): string{\r\nreturn $this->displayName;\r\n}\r\n\r\nOn lines 565, 566, and 567 in src\\pocketmine\\Player.php\r\nJust putting this out for anyone to have a go at fixing"},"comment":{"url":"https://api.github.com/repos/ImagicalMine/ImagicalMine/issues/comments/183648940","html_url":"https://github.com/ImagicalMine/ImagicalMine/issues/904#issuecomment-183648940","issue_url":"https://api.github.com/repos/ImagicalMine/ImagicalMine/issues/904","id":183648940,"user":{"login":"TheDragonRing","id":16874139,"avatar_url":"https://avatars.githubusercontent.com/u/16874139?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDragonRing","html_url":"https://github.com/TheDragonRing","followers_url":"https://api.github.com/users/TheDragonRing/followers","following_url":"https://api.github.com/users/TheDragonRing/following{/other_user}","gists_url":"https://api.github.com/users/TheDragonRing/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDragonRing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDragonRing/subscriptions","organizations_url":"https://api.github.com/users/TheDragonRing/orgs","repos_url":"https://api.github.com/users/TheDragonRing/repos","events_url":"https://api.github.com/users/TheDragonRing/events{/privacy}","received_events_url":"https://api.github.com/users/TheDragonRing/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T11:41:30Z","updated_at":"2016-02-13T11:41:30Z","body":"Ok"}}