supercrafter333 / theSpawn

A PocketMine-MP plugin as an much better alternative to MSpawns.
https://supercrafter333.github.io/theSpawn/
Apache License 2.0
25 stars 12 forks source link

[BUG:] Crash when trying to go to warp #46

Closed MrBlasyMSK closed 2 years ago

MrBlasyMSK commented 2 years ago

Bug: Crash when trying to go to warp

Informations

theSpawn Version: [1.8.0-dev] Server-OS: [linux PHP Version: [8.0.17] PocketMine-MP Version: [4.2.6]

Error

PocketMine-MP Crash Dump Mon Apr 4 13:09:25 UTC 2022

PocketMine-MP version: 4.2.6 [Protocol 486]
Git commit: 26aee7ff73a982dd45abf8184c715f290ce23fdb
PHP version: 8.0.17
OS: Linux, linux

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: FormAPI

Error: jojoe77777\FormAPI\SimpleForm::addButton(): Argument #3 ($imagePath) must be of type string, null given, called in /home/container/plugins/theSpawn-development/src/supercrafter333/theSpawn/Forms/WarpForms.php on line 47
File: plugins/FormAPI_dev-1.phar/src/jojoe77777/FormAPI/SimpleForm
Line: 77
Type: TypeError
Backtrace:
#0 plugins/theSpawn-development/src/supercrafter333/theSpawn/Forms/WarpForms(47): jojoe77777\FormAPI\SimpleForm->addButton(string[39] ..b....r...7clic para teletransportarse, integer -1, NULL , string[2] ..)
#1 plugins/theSpawn-development/src/supercrafter333/theSpawn/Commands/WarpCommand(54): supercrafter333\theSpawn\Forms\WarpForms->open(object pocketmine\player\Player#645653)
#2 pmsrc/src/command/SimpleCommandMap(220): supercrafter333\theSpawn\Commands\WarpCommand->execute(object pocketmine\player\Player#645653, string[4] warp, array[0])
#3 pmsrc/src/Server(1408): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#645653, string[4] warp)
#4 pmsrc/src/player/Player(1396): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#645653, string[4] warp)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(760): pocketmine\player\Player->chat(string[5] /warp)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#671649)
#7 pmsrc/src/network/mcpe/NetworkSession(397): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object CLADevs\VanillaX\network\InGamePacketHandlerX#664451)
#8 pmsrc/src/network/mcpe/NetworkSession(360): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#671649, string[26] M./warp..G.k..u9..........)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[30] ..e./O,*`...;...R...}....v30..)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[39] ...8\_P.........N.Y.-......u<|......?..)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#579657)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/src/Server(1660): pocketmine\snooze\SleeperHandler->sleepUntil(double 1649077765.0804)
#15 pmsrc/src/Server(1046): pocketmine\Server->tickProcessor()
#16 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#17 pmsrc/src/PocketMine(327): pocketmine\server()
#18 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

readjustment instructions

[I've done...] [1. Create 2 warps] [2. Then rename them (in my case, ñ and ññ)] [3. Use /warp] [4. Crash]

fix suggestions [optional]

X

MrBlasyMSK commented 2 years ago

No need to rename it, if u create it and then use /warp it crash