Infernus101 / KitUI

Advance AdvancedKits! Select Kits from a form, just do /kit and get kits info and select it if available! For Minecraft Bedrock Edition!
GNU General Public License v3.0
44 stars 33 forks source link

Error when run /kit #77

Closed DrakerZR closed 6 years ago

DrakerZR commented 6 years ago

Issue description

Hi. When I use the command, appears an error. This appears in the console:

[Server thread/CRITICAL] ErrorException: "Undefined variable: name2" (EXCEPTION) in KitUI.phar/src/Infernus101/UI/windows/KitMainMenu" at line 32.

PocketMine-MP Version: 1.7dev-827 Kit-UI Version: 1.2.2 MCPE Version: 1.2.11 PHP version: 7.2 ...

2018-03-14 [02:28:30] [Server thread/CRITICAL]: ErrorException: "Undefined variable: name2" (EXCEPTION) in "KitUI.phar/src/Infernus101/KitUI/UI/windows/KitMainMenu" at line 32
2018-03-14 [02:28:30] [Server thread/DEBUG]: #0 KitUI.phar/src/Infernus101/KitUI/UI/windows/KitMainMenu(32): pocketmine\error_handler(integer 8, string Undefined variable: name2, string phar:///storage/sdcard0/PocketMine-MP/plugins/KitUI.phar/src/Infernus101/KitUI/UI/windows/KitMainMenu.php, integer 32, array Array())
2018-03-14 [02:28:30] [Server thread/DEBUG]: #1 KitUI.phar/src/Infernus101/KitUI/UI/Window(24): Infernus101\KitUI\UI\windows\KitMainMenu->process()
2018-03-14 [02:28:30] [Server thread/DEBUG]: #2 KitUI.phar/src/Infernus101/KitUI/UI/Handler(31): Infernus101\KitUI\UI\Window->__construct(Infernus101\KitUI\Main object, pocketmine\Player object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #3 KitUI.phar/src/Infernus101/KitUI/UI/Handler(24): Infernus101\KitUI\UI\Handler->getWindow(integer 0, Infernus101\KitUI\Main object, pocketmine\Player object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #4 KitUI.phar/src/Infernus101/KitUI/Main(79): Infernus101\KitUI\UI\Handler->getWindowJson(integer 0, Infernus101\KitUI\Main object, pocketmine\Player object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #5 src/pocketmine/command/PluginCommand(58): Infernus101\KitUI\Main->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string kit, array Array())
2018-03-14 [02:28:30] [Server thread/DEBUG]: #6 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string kit, array Array())
2018-03-14 [02:28:30] [Server thread/DEBUG]: #7 src/pocketmine/Server(1947): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string kit)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #8 src/pocketmine/Player(2178): pocketmine\Server->dispatchCommand(pocketmine\Player object, string kit)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(220): pocketmine\Player->chat(string /kit)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #14 src/pocketmine/Player(3014): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(147): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #16 vendor/pocketmine/raklib/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.1.95 54544, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket()
2018-03-14 [02:28:30] [Server thread/DEBUG]: #18 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2018-03-14 [02:28:30] [Server thread/DEBUG]: #19 src/pocketmine/Server(2491): pocketmine\network\Network->processInterfaces()
2018-03-14 [02:28:30] [Server thread/DEBUG]: #20 src/pocketmine/Server(2240): pocketmine\Server->tick()
2018-03-14 [02:28:30] [Server thread/DEBUG]: #21 src/pocketmine/Server(2116): pocketmine\Server->tickProcessor()
2018-03-14 [02:28:30] [Server thread/DEBUG]: #22 src/pocketmine/Server(1702): pocketmine\Server->start()
2018-03-14 [02:28:30] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /storage/sdcard0/PocketMine-MP/, string /storage/sdcard0/PocketMine-MP/plugins/)
2018-03-14 [02:28:30] [Server thread/DEBUG]: #24 /storage/sdcard0/PocketMine-MP/PocketMine-MP.phar(1): require(string phar:///storage/sdcard0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)