{"action":"closed","issue":{"url":"https://api.github.com/repos/jasonwynn10/MyPlot/issues/188","repository_url":"https://api.github.com/repos/jasonwynn10/MyPlot","labels_url":"https://api.github.com/repos/jasonwynn10/MyPlot/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/jasonwynn10/MyPlot/issues/188/comments","events_url":"https://api.github.com/repos/jasonwynn10/MyPlot/issues/188/events","html_url":"https://github.com/jasonwynn10/MyPlot/issues/188","id":358528022,"node_id":"MDU6SXNzdWUzNTg1MjgwMjI=","number":188,"title":"MySQL: MyPlot commands + movement errors due to \"Undefined index: pvp\"","user":{"login":"Aericio","id":16523741,"node_id":"MDQ6VXNlcjE2NTIzNzQx","avatar_url":"https://avatars1.githubusercontent.com/u/16523741?v=4","gravatar_id":"","url":"https://api.github.com/users/Aericio","html_url":"https://github.com/Aericio","followers_url":"https://api.github.com/users/Aericio/followers","following_url":"https://api.github.com/users/Aericio/following{/other_user}","gists_url":"https://api.github.com/users/Aericio/gists{/gist_id}","starred_url":"https://api.github.com/users/Aericio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aericio/subscriptions","organizations_url":"https://api.github.com/users/Aericio/orgs","repos_url":"https://api.github.com/users/Aericio/repos","events_url":"https://api.github.com/users/Aericio/events{/privacy}","received_events_url":"https://api.github.com/users/Aericio/received_events","type":"User","site_admin":false},"labels":[{"id":503034190,"node_id":"MDU6TGFiZWw1MDMwMzQxOTA=","url":"https://api.github.com/repos/jasonwynn10/MyPlot/labels/Category:%20Bug","name":"Category: Bug","color":"ee0701","default":false},{"id":503034942,"node_id":"MDU6TGFiZWw1MDMwMzQ5NDI=","url":"https://api.github.com/repos/jasonwynn10/MyPlot/labels/Priority:%20High","name":"Priority: High","color":"b60205","default":false},{"id":503035344,"node_id":"MDU6TGFiZWw1MDMwMzUzNDQ=","url":"https://api.github.com/repos/jasonwynn10/MyPlot/labels/Status:%20Confirmed","name":"Status: Confirmed","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-10T08:55:26Z","updated_at":"2018-10-01T12:08:14Z","closed_at":"2018-10-01T12:08:14Z","author_association":"COLLABORATOR","body":"<!-- put an 'x' in the brackets -->\r\n- [x] This issue isn't duplicated - you can check if it is by using the search bar located at the top left hand corner and select \"Issues\" on the left.\r\n- [x] This issue includes appropriate markdown for sections - e.g. code blocks for crash dumps.\r\n- [x] This issue is understandable - feel free to use your native language to write issues if you are not comfortable with English.\r\n\r\n<!-- ISSUE DESCRIPTION - write a SHORT title about what problem you're having. -->\r\n## Issue description\r\nUsing /p info results in a couple errors regarding the pvp index not being defined.\r\n\r\n<!-- REPRODUCE ISSUE STEPS - how can this issue be reproduced? -->\r\n## Reproducing the issue\r\n1. use mysql database\r\n2. go in world and `/p i`\r\n\r\n<!-- CLIENT INFORMATION - what is the plugin version, PHP version, and server build you're running? -->\r\n## Client information\r\nPocketMine-MP Version: https://github.com/pmmp/PocketMine-MP/releases/tag/3.2.2\r\nPlugin Version: https://github.com/jasonwynn10/MyPlot/commit/fc7389675f61003e33a26b61007f6d840b413819\r\nPHP version: 7.2.1 (default)\r\n\r\n<!-- OPTIONAL INFORMATION - use this section for posting crash dumps, backtraces or other files(please use code markdown!) -->\r\n## Optional information\r\n```\r\n[00:51:52] [Server thread/CRITICAL]: Unhandled exception executing command 'p info' in plot: Undefined index: pvp\r\n[00:51:52] [Server thread/CRITICAL]: ErrorException: \"Undefined index: pvp\" (EXCEPTION) in \"MyPlot-master/src/MyPlot/provider/MySQLProvider\" at line 124\r\n[00:51:52] [Server thread/DEBUG]: #0 MyPlot-master/src/MyPlot/provider/MySQLProvider(124): pocketmine\\utils\\Utils::errorExceptionHandler(integer 8, string Undefined index: pvp, string C:\\Users\\nein\\Desktop\\Minecraft PE\\plugins\\MyPlot-master\\src\\MyPlot\\provider\\MySQLProvider.php, integer 124, array Array())\r\n[00:51:52] [Server thread/DEBUG]: #1 MyPlot-master/src/MyPlot/MyPlot(238): MyPlot\\provider\\MySQLProvider->getPlot(string lol, integer 6, integer 6)\r\n[00:51:52] [Server thread/DEBUG]: #2 MyPlot-master/src/MyPlot/subcommand/InfoSubCommand(53): MyPlot\\MyPlot->getPlotByPosition(pocketmine\\Player object)\r\n[00:51:52] [Server thread/DEBUG]: #3 MyPlot-master/src/MyPlot/Commands(119): MyPlot\\subcommand\\InfoSubCommand->execute(pocketmine\\Player object, array Array())\r\n[00:51:52] [Server thread/DEBUG]: #4 src/pocketmine/command/SimpleCommandMap(258): MyPlot\\Commands->execute(pocketmine\\Player object, string p, array Array())\r\n[00:51:52] [Server thread/DEBUG]: #5 src/pocketmine/Server(1955): pocketmine\\command\\SimpleCommandMap->dispatch(pocketmine\\Player object, string p info)\r\n[00:51:52] [Server thread/DEBUG]: #6 src/pocketmine/Player(2191): pocketmine\\Server->dispatchCommand(pocketmine\\Player object, string p info)\r\n[00:51:52] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(222): pocketmine\\Player->chat(string /p info)\r\n[00:51:52] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\\network\\mcpe\\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\\network\\mcpe\\protocol\\CommandRequestPacket object)\r\n[00:51:52] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\\network\\mcpe\\protocol\\CommandRequestPacket->handle(pocketmine\\network\\mcpe\\PlayerNetworkSessionAdapter object)\r\n[00:51:52] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\\network\\mcpe\\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\\network\\mcpe\\protocol\\CommandRequestPacket object)\r\n[00:51:52] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\\network\\mcpe\\protocol\\BatchPacket->handle(pocketmine\\network\\mcpe\\PlayerNetworkSessionAdapter object)\r\n[00:51:52] [Server thread/DEBUG]: #12 src/pocketmine/Player(3056): pocketmine\\network\\mcpe\\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\\network\\mcpe\\protocol\\BatchPacket object)\r\n[00:51:52] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\\Player->handleDataPacket(pocketmine\\network\\mcpe\\protocol\\BatchPacket object)\r\n[00:51:52] [Server thread/DEBUG]: #14 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\\network\\mcpe\\RakLibInterface->handleEncapsulated(string 192.168.0.23 53556, raklib\\protocol\\EncapsulatedPacket object, integer 0)\r\n[00:51:52] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\\server\\ServerHandler->handlePacket()\r\n[00:51:52] [Server thread/DEBUG]: #16 src/pocketmine/network/Network(94): pocketmine\\network\\mcpe\\RakLibInterface->process()\r\n[00:51:52] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\\network\\Network->processInterface(pocketmine\\network\\mcpe\\RakLibInterface object)\r\n[00:51:52] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\\network\\mcpe\\RakLibInterface->pocketmine\\network\\mcpe\\{closure}()\r\n[00:51:52] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\\snooze\\SleeperHandler->processNotifications()\r\n[00:51:52] [Server thread/DEBUG]: #20 src/pocketmine/Server(2259): pocketmine\\snooze\\SleeperHandler->sleepUntil(double 1536569512.1559)\r\n[00:51:52] [Server thread/DEBUG]: #21 src/pocketmine/Server(2134): pocketmine\\Server->tickProcessor()\r\n[00:51:52] [Server thread/DEBUG]: #22 src/pocketmine/Server(1700): pocketmine\\Server->start()\r\n[00:51:52] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(243): pocketmine\\Server->__construct(BaseClassLoader object, pocketmine\\utils\\MainLogger object, string C:\\Users\\nein\\Desktop\\Minecraft PE\\, string C:\\Users\\nein\\Desktop\\Minecraft PE\\plugins\\)\r\n[00:51:52] [Server thread/DEBUG]: #24 C:/Users/nein/Desktop/Minecraft PE/PocketMine-MP.phar(1): require(string phar://C:/Users/nein/Desktop/Minecraft PE/PocketMine-MP.phar/src/pocketmine/PocketMine.php)\r\n[00:51:53] [Server thread/CRITICAL]: Could not pass event 'pocketmine\\event\\player\\PlayerMoveEvent' to 'MyPlot v1.3.6': Undefined index: pvp on MyPlot\\EventListener\r\n[00:51:53] [Server thread/CRITICAL]: ErrorException: \"Undefined index: pvp\" (EXCEPTION) in \"MyPlot-master/src/MyPlot/provider/MySQLProvider\" at line 124\r\n[00:51:53] [Server thread/DEBUG]: #0 MyPlot-master/src/MyPlot/provider/MySQLProvider(124): pocketmine\\utils\\Utils::errorExceptionHandler(integer 8, string Undefined index: pvp, string C:\\Users\\nein\\Desktop\\Minecraft PE\\plugins\\MyPlot-master\\src\\MyPlot\\provider\\MySQLProvider.php, integer 124, array Array())\r\n[00:51:53] [Server thread/DEBUG]: #1 MyPlot-master/src/MyPlot/MyPlot(238): MyPlot\\provider\\MySQLProvider->getPlot(string lol, integer 6, integer 6)\r\n[00:51:53] [Server thread/DEBUG]: #2 MyPlot-master/src/MyPlot/EventListener(231): MyPlot\\MyPlot->getPlotByPosition(pocketmine\\level\\Location object)\r\n[00:51:53] [Server thread/DEBUG]: #3 src/pocketmine/plugin/MethodEventExecutor(38): MyPlot\\EventListener->onPlayerMove(pocketmine\\event\\player\\PlayerMoveEvent object)\r\n[00:51:53] [Server thread/DEBUG]: #4 src/pocketmine/plugin/RegisteredListener(98): pocketmine\\plugin\\MethodEventExecutor->execute(MyPlot\\EventListener object, pocketmine\\event\\player\\PlayerMoveEvent object)\r\n[00:51:53] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginManager(692): pocketmine\\plugin\\RegisteredListener->callEvent(pocketmine\\event\\player\\PlayerMoveEvent object)\r\n[00:51:53] [Server thread/DEBUG]: #6 src/pocketmine/Player(1600): pocketmine\\plugin\\PluginManager->callEvent(pocketmine\\event\\player\\PlayerMoveEvent object)\r\n[00:51:53] [Server thread/DEBUG]: #7 src/pocketmine/Player(1707): pocketmine\\Player->processMovement(integer 1)\r\n[00:51:53] [Server thread/DEBUG]: #8 src/pocketmine/level/Level(741): pocketmine\\Player->onUpdate(integer 572)\r\n[00:51:53] [Server thread/DEBUG]: #9 src/pocketmine/Server(2357): pocketmine\\level\\Level->doTick(integer 572)\r\n[00:51:53] [Server thread/DEBUG]: #10 src/pocketmine/Server(2514): pocketmine\\Server->checkTickUpdates(integer 572, double 1536569512.7396)\r\n[00:51:53] [Server thread/DEBUG]: #11 src/pocketmine/Server(2256): pocketmine\\Server->tick()\r\n[00:51:53] [Server thread/DEBUG]: #12 src/pocketmine/Server(2134): pocketmine\\Server->tickProcessor()\r\n[00:51:53] [Server thread/DEBUG]: #13 src/pocketmine/Server(1700): pocketmine\\Server->start()\r\n[00:51:53] [Server thread/DEBUG]: #14 src/pocketmine/PocketMine(243): pocketmine\\Server->__construct(BaseClassLoader object, pocketmine\\utils\\MainLogger object, string C:\\Users\\nein\\Desktop\\Minecraft PE\\, string C:\\Users\\nein\\Desktop\\Minecraft PE\\plugins\\)\r\n[00:51:53] [Server thread/DEBUG]: #15 C:/Users/nein/Desktop/Minecraft PE/PocketMine-MP.phar(1): require(string phar://C:/Users/nein/Desktop/Minecraft PE/PocketMine-MP.phar/src/pocketmine/PocketMine.php)\r\n[00:51:53] [Server thread/DEBUG]: Level \"lol\" took 436ms, setting tick rate to 8 ticks\r\n```\r\n"}}
{"actor":{"display_login":"jasonwynn10"}}