Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy leave-bed is not working #15

Open
CallMeYuuuu opened this issue Jul 9, 2020 · 2 comments
Open

Proxy leave-bed is not working #15

CallMeYuuuu opened this issue Jul 9, 2020 · 2 comments

Comments

@CallMeYuuuu
Copy link

When i want to leave the area with the bed i get kicked for intenal server error instead of teleporting back to lobby

error:
[20:22:09] [Server thread/CRITICAL]: Error: "Call to a member function getSafeSpawn() on null" (EXCEPTION) in "plugins/Dragons.phar/src/vixikhd/dragons/arena/Arena" at line 152 [20:22:09] [Server thread/DEBUG]: #0 plugins/Dragons.phar/src/vixikhd/dragons/arena/Arena(351): vixikhd\dragons\arena\Arena->disconnectPlayer(object pocketmine\Player) [20:22:09] [Server thread/DEBUG]: #1 src/pocketmine/plugin/MethodEventExecutor(42): vixikhd\dragons\arena\Arena->onInteract(object pocketmine\event\player\PlayerInteractEvent) [20:22:09] [Server thread/DEBUG]: #2 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object vixikhd\dragons\arena\Arena, object pocketmine\event\player\PlayerInteractEvent) [20:22:09] [Server thread/DEBUG]: #3 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent) [20:22:09] [Server thread/DEBUG]: #4 src/pocketmine/Player(2608): pocketmine\event\Event->call() [20:22:09] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(150): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [20:22:09] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(173): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [20:22:09] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [20:22:09] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [20:22:09] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [20:22:09] [Server thread/DEBUG]: #10 src/pocketmine/Player(3247): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [20:22:09] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [20:22:09] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 59753, object raklib\protocol\EncapsulatedPacket, integer 0) [20:22:09] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [20:22:09] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [20:22:09] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}() [20:22:09] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [20:22:09] [Server thread/DEBUG]: #17 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1594326129.8069) [20:22:09] [Server thread/DEBUG]: #18 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() [20:22:09] [Server thread/DEBUG]: #19 src/pocketmine/Server(1588): pocketmine\Server->start() [20:22:09] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[14] /home/dragons/, string[22] /home/dragons/plugins/) [20:22:09] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(304): pocketmine\server() [20:22:09] [Server thread/DEBUG]: #22 (11): require(string[66] phar:///home/dragons/pocketmine.phar/src/pocketmine/PocketMine.php)

@CallMeYuuuu
Copy link
Author

And when a player joins on a server which have never been on the server it crashes.

error code:
2020-07-09 [20:29:58] [Server thread/CRITICAL]: Error: "Call to a member function getSafeSpawn() on null" (EXCEPTION) in "src/pocketmine/Server" at line 728 2020-07-09 [20:29:58] [Server thread/DEBUG]: #0 src/pocketmine/Player(2084): pocketmine\Server->getOfflinePlayerData(string[10] lolgonhdyt) 2020-07-09 [20:29:58] [Server thread/DEBUG]: #1 src/pocketmine/Player(2067): pocketmine\Player->processLogin() 2020-07-09 [20:29:58] [Server thread/DEBUG]: #2 src/pocketmine/network/mcpe/VerifyLoginTask(180): pocketmine\Player->onVerifyCompleted(object pocketmine\network\mcpe\protocol\LoginPacket, NULL , boolean ) 2020-07-09 [20:29:58] [Server thread/DEBUG]: #3 src/pocketmine/scheduler/AsyncPool(319): pocketmine\network\mcpe\VerifyLoginTask->onCompletion(object pocketmine\Server) 2020-07-09 [20:29:58] [Server thread/DEBUG]: #4 src/pocketmine/Server(2395): pocketmine\scheduler\AsyncPool->collectTasks() 2020-07-09 [20:29:58] [Server thread/DEBUG]: #5 src/pocketmine/Server(2154): pocketmine\Server->tick() 2020-07-09 [20:29:58] [Server thread/DEBUG]: #6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() 2020-07-09 [20:29:58] [Server thread/DEBUG]: #7 src/pocketmine/Server(1588): pocketmine\Server->start() 2020-07-09 [20:29:58] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[14] /home/dragons/, string[22] /home/dragons/plugins/) 2020-07-09 [20:29:58] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(304): pocketmine\server() 2020-07-09 [20:29:58] [Server thread/DEBUG]: #10 (11): require(string[66] phar:///home/dragons/pocketmine.phar/src/pocketmine/PocketMine.php)

@kostamax27
Copy link

When i want to leave the area with the bed i get kicked for intenal server error instead of teleporting back to lobby

error: [20:22:09] [Server thread/CRITICAL]: Error: "Call to a member function getSafeSpawn() on null" (EXCEPTION) in "plugins/Dragons.phar/src/vixikhd/dragons/arena/Arena" at line 152 [20:22:09] [Server thread/DEBUG]: #0 plugins/Dragons.phar/src/vixikhd/dragons/arena/Arena(351): vixikhd\dragons\arena\Arena->disconnectPlayer(object pocketmine\Player) [20:22:09] [Server thread/DEBUG]: #1 src/pocketmine/plugin/MethodEventExecutor(42): vixikhd\dragons\arena\Arena->onInteract(object pocketmine\event\player\PlayerInteractEvent) [20:22:09] [Server thread/DEBUG]: #2 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object vixikhd\dragons\arena\Arena, object pocketmine\event\player\PlayerInteractEvent) [20:22:09] [Server thread/DEBUG]: #3 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent) [20:22:09] [Server thread/DEBUG]: #4 src/pocketmine/Player(2608): pocketmine\event\Event->call() [20:22:09] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(150): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [20:22:09] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(173): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [20:22:09] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [20:22:09] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [20:22:09] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [20:22:09] [Server thread/DEBUG]: #10 src/pocketmine/Player(3247): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [20:22:09] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [20:22:09] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 59753, object raklib\protocol\EncapsulatedPacket, integer 0) [20:22:09] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [20:22:09] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [20:22:09] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}() [20:22:09] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [20:22:09] [Server thread/DEBUG]: #17 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1594326129.8069) [20:22:09] [Server thread/DEBUG]: #18 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() [20:22:09] [Server thread/DEBUG]: #19 src/pocketmine/Server(1588): pocketmine\Server->start() [20:22:09] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[14] /home/dragons/, string[22] /home/dragons/plugins/) [20:22:09] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(304): pocketmine\server() [20:22:09] [Server thread/DEBUG]: #22 (11): require(string[66] phar:///home/dragons/pocketmine.phar/src/pocketmine/PocketMine.php)

Perhaps you did not configure the plugin correctly when creating the arena

Create a new arena and read carefully what they write to you in the chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants