Open WinterHellMC opened 3 years ago
Thank you for reporting this @WinterHellMC. So far I have no been able to reproduce this error and the /is members command seems to be working okay for me. Can you describe the steps you took in order for this to happen?
Thank you for reporting this @WinterHellMC. So far I have no been able to reproduce this error and the /is members command seems to be working okay for me. Can you describe the steps you took in order for this to happen?
it happens when you add a lot of people to island /is fly gives internal error (its exceptional) only happens when player database is saved in island members as {"1":"name","2":"name"} butr dosent happen if saved as ["name", "name"] but if you add a lot of people it saves the first way not second so it will be better to add member limit
TypeError: "count(): Argument #1 ($value) must be of type Countable|array, stdClass given" (EXCEPTION) in "plugins/WHSkyblock_v5.0.2.phar/src/RedCraftPE/RedSkyBlock/Commands/SubCommands/Members" at line 29 [15:25:11] [Server thread/CRITICAL]: #0 plugins/WHSkyblock_v5.0.2.phar/src/RedCraftPE/RedSkyBlock/Commands/SubCommands/Members(29): count(object stdClass) [15:25:11] [Server thread/CRITICAL]: #1 plugins/WHSkyblock_v5.0.2.phar/src/RedCraftPE/RedSkyBlock/Commands/Island(173): RedCraftPE\RedSkyBlock\Commands\SubCommands\Members->onMembersCommand(object pocketmine\Player) [15:25:11] [Server thread/CRITICAL]: #2 plugins/WHSkyblock_v5.0.2.phar/src/RedCraftPE/RedSkyBlock/SkyBlock(89): RedCraftPE\RedSkyBlock\Commands\Island->onIslandCommand(object pocketmine\Player, object pocketmine\command\PluginCommand, string[2] is, array[1]) [15:25:11] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/command/PluginCommand(54): RedCraftPE\RedSkyBlock\SkyBlock->onCommand(object pocketmine\Player, object pocketmine\command\PluginCommand, string[2] is, array[1]) [15:25:11] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\PluginCommand->execute(object pocketmine\Player, string[2] is, array[1]) [15:25:11] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[10] is members) [15:25:11] [Server thread/CRITICAL]: #6 plugins/SBUI_v1.phar/src/DeadBush/SBUI/main(192): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[10] is members) [15:25:11] [Server thread/CRITICAL]: #7 plugins/Guide_v1.phar/src/jojoe77777/FormAPI/Form(46): DeadBush\SBUI\main->DeadBush\SBUI{closure}(object pocketmine\Player, integer 6) [15:25:11] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Player(3674): jojoe77777\FormAPI\Form->handleResponse(object pocketmine\Player, integer 6) [15:25:11] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(259): pocketmine\Player->onFormSubmit(integer 18, integer 6) [15:25:11] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [15:25:11] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [15:25:11] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [15:25:11] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [15:25:11] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/Player(3321): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [15:25:11] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [15:25:11] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 49.49.237.94 57905, object raklib\protocol\EncapsulatedPacket, integer 0) [15:25:11] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [15:25:11] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [15:25:11] [Server thread/CRITICAL]: #19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [15:25:11] [Server thread/CRITICAL]: #20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications() [15:25:11] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1631460311.181) [15:25:11] [Server thread/CRITICAL]: #22 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor() [15:25:11] [Server thread/CRITICAL]: #23 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start() [15:25:11] [Server thread/CRITICAL]: #24 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) [15:25:11] [Server thread/CRITICAL]: #25 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server() [15:25:11] [Server thread/CRITICAL]: #26 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)