You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Delete Island Bug Crash The Server
To Reproduce
After doing /is delete {player name}
Expected behavior
I thought it would delete the island SkyBlocksPM plugin information
Plugin Version: 1.0.4
Crash Dump
PocketMine-MP Crash Dump Fri Mar 11 10:35:43 UTC 2022
Error: Call to a member function getMembers() on null
File: plugins/SkyBlocksPM/src/Vecnavium/SkyBlocksPM/commands/subcommands/DeleteSubCommand
Line: 43
Type: Error
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: SkyBlocksPM
Loaded plugins:
DEVirion 1.2.8 by poggit, SOFe for API(s) 4.0.0
DevTools 1.15.0 by PocketMine Team for API(s) 4.0.0
EconomyAPI 5.7.3-PM4 by onebone for API(s) 4.0.0
FakePlayer 0.1.2 by for API(s) 4.0.0
FormAPI 2.1.0 by jojoe77777 for API(s) 4.0.0
MultiWorld 1.7.0-beta4 by CzechPMDevs, VixikCZ, fuyutsuki, kaliiks for API(s) 4.0.0
PurePerms 2.0.2 by Vecnavium , 64FF00 & ProjectInfinity for API(s) 4.0.0
SkyBlocksPM 1.0.4 by Vecnavium for API(s) 4.0.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Delete Island Bug Crash The Server
To Reproduce
After doing /is delete {player name}
Expected behavior
I thought it would delete the island
SkyBlocksPM plugin information
Crash Dump
PocketMine-MP Crash Dump Fri Mar 11 10:35:43 UTC 2022
Error: Call to a member function getMembers() on null
File: plugins/SkyBlocksPM/src/Vecnavium/SkyBlocksPM/commands/subcommands/DeleteSubCommand
Line: 43
Type: Error
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: SkyBlocksPM
Code:
[34] $sender->sendMessage(SkyBlocksPM::getInstance()->getMessages()->getMessage('not-registered'));
[35] return;
[36] }
[37] if ($skyblockPlayer->getSkyBlock() == '')
[38] {
[39] $sender->sendMessage(SkyBlocksPM::getInstance()->getMessages()->getMessage('no-island'));
[40] return;
[41] }
[42] $skyblock = SkyBlocksPM::getInstance()->getSkyBlockManager()->getSkyBlock($skyblockPlayer->getSkyBlock());
[43] foreach ($skyblock->getMembers() as $member)
[44] {
[45] $player = SkyBlocksPM::getInstance()->getServer()->getPlayerByPrefix($member);
[46] if ($player instanceof P)
[47] $player->teleport(SkyBlocksPM::getInstance()->getServer()->getWorldManager()->getDefaultWorld()->getSpawnLocation());
[48] SkyBlocksPM::getInstance()->getPlayerManager()->getPlayerByPrefix($member)->setSkyBlock('');
[49] }
[50] SkyBlocksPM::getInstance()->getSkyBlockManager()->deleteSkyBlock($skyblock->getName());
[51] $world = SkyBlocksPM::getInstance()->getServer()->getWorldManager()->getWorldByName($skyblock->getWorld());
[52] foreach ($world->getPlayers() as $p)
[53] $p->teleport(SkyBlocksPM::getInstance()->getServer()->getWorldManager()->getDefaultWorld()->getSpawnLocation());
Backtrace:
#0 plugins/SkyBlocksPM/src/Vecnavium/SkyBlocksPM/libs/CortexPE/Commando/BaseCommand(143): Vecnavium\SkyBlocksPM\commands\subcommands\DeleteSubCommand->onRun(object pocketmine\player\Player#101726, string[2] is, array[1])
#1 pmsrc/src/command/SimpleCommandMap(220): Vecnavium\SkyBlocksPM\libs\CortexPE\Commando\BaseCommand->execute(object pocketmine\player\Player#101726, string[2] is, array[1])
#2 pmsrc/src/Server(1408): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#101726, string[25] is delete PushkarMCPE5031)
#3 pmsrc/src/player/Player(1382): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#101726, string[25] is delete PushkarMCPE5031)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(164): pocketmine\player\Player->chat(string[27] ./is delete PushkarMCPE5031)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/TextPacket(167): pocketmine\network\mcpe\handler\InGamePacketHandler->handleText(object pocketmine\network\mcpe\protocol\TextPacket#132906)
#6 pmsrc/src/network/mcpe/NetworkSession(397): pocketmine\network\mcpe\protocol\TextPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#117552)
#7 pmsrc/src/network/mcpe/NetworkSession(360): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\TextPacket#132906, string[65] ....PushkarMCPE5031../is delete PushkarMCPE5031.2535445334734711.)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[98] s.dd..(-..N,.u.p5506....,VHI.I-IU@..02565115661."CC....9?Z.nU.9.Nlp...uJSkpf...x)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[107] .]../...E.6...W...1 ....I..:.....K2........{...=.b.J........[..nc.R.w.........+.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#27952)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1660): pocketmine\snooze\SleeperHandler->sleepUntil(double 1646994943.1691)
#14 pmsrc/src/Server(1046): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[72] /storage/emulated/0/Android/data/io.scer.pocketmine/files/PocketMine-MP/, string[80] /storage/emulated/0/Android/data/io.scer.pocketmine/files/PocketMine-MP/plugins/)
#16 pmsrc/src/PocketMine(327): pocketmine\server()
#17 pmsrc(11): require(string[116] phar:///storage/emulated/0/Android/data/io.scer.pocketmine/files/PocketMine-MP/P)
PocketMine-MP version: 4.2.2 [Protocol 486]
Git commit: 12946fbe466335ccf9d94f63a65400903c924fca
uname -a: Linux localhost 4.9.112-perf+ #1 SMP PREEMPT Wed Aug 19 02:45:37 CST 2020 aarch64
PHP Version: 8.0.12
Zend version: 4.0.12
OS: Linux, android
Composer libraries:
Loaded plugins:
DEVirion 1.2.8 by poggit, SOFe for API(s) 4.0.0
DevTools 1.15.0 by PocketMine Team for API(s) 4.0.0
EconomyAPI 5.7.3-PM4 by onebone for API(s) 4.0.0
FakePlayer 0.1.2 by for API(s) 4.0.0
FormAPI 2.1.0 by jojoe77777 for API(s) 4.0.0
MultiWorld 1.7.0-beta4 by CzechPMDevs, VixikCZ, fuyutsuki, kaliiks for API(s) 4.0.0
PurePerms 2.0.2 by Vecnavium , 64FF00 & ProjectInfinity for API(s) 4.0.0
SkyBlocksPM 1.0.4 by Vecnavium for API(s) 4.0.0
The text was updated successfully, but these errors were encountered: