Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL: MyPlot commands + movement errors due to "Undefined index: pvp" #188

Closed
Aericio opened this Issue Sep 10, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@Aericio
Copy link
Collaborator

Aericio commented Sep 10, 2018

  • 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.
  • This issue includes appropriate markdown for sections - e.g. code blocks for crash dumps.
  • This issue is understandable - feel free to use your native language to write issues if you are not comfortable with English.

Issue description

Using /p info results in a couple errors regarding the pvp index not being defined.

Reproducing the issue

  1. use mysql database
  2. go in world and /p i

Client information

PocketMine-MP Version: https://github.com/pmmp/PocketMine-MP/releases/tag/3.2.2
Plugin Version: fc73896
PHP version: 7.2.1 (default)

Optional information

[00:51:52] [Server thread/CRITICAL]: Unhandled exception executing command 'p info' in plot: Undefined index: pvp
[00:51:52] [Server thread/CRITICAL]: ErrorException: "Undefined index: pvp" (EXCEPTION) in "MyPlot-master/src/MyPlot/provider/MySQLProvider" at line 124
[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())
[00:51:52] [Server thread/DEBUG]: #1 MyPlot-master/src/MyPlot/MyPlot(238): MyPlot\provider\MySQLProvider->getPlot(string lol, integer 6, integer 6)
[00:51:52] [Server thread/DEBUG]: #2 MyPlot-master/src/MyPlot/subcommand/InfoSubCommand(53): MyPlot\MyPlot->getPlotByPosition(pocketmine\Player object)
[00:51:52] [Server thread/DEBUG]: #3 MyPlot-master/src/MyPlot/Commands(119): MyPlot\subcommand\InfoSubCommand->execute(pocketmine\Player object, array Array())
[00:51:52] [Server thread/DEBUG]: #4 src/pocketmine/command/SimpleCommandMap(258): MyPlot\Commands->execute(pocketmine\Player object, string p, array Array())
[00:51:52] [Server thread/DEBUG]: #5 src/pocketmine/Server(1955): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string p info)
[00:51:52] [Server thread/DEBUG]: #6 src/pocketmine/Player(2191): pocketmine\Server->dispatchCommand(pocketmine\Player object, string p info)
[00:51:52] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(222): pocketmine\Player->chat(string /p info)
[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)
[00:51:52] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[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)
[00:51:52] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[00:51:52] [Server thread/DEBUG]: #12 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[00:51:52] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[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)
[00:51:52] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
[00:51:52] [Server thread/DEBUG]: #16 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
[00:51:52] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
[00:51:52] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[00:51:52] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
[00:51:52] [Server thread/DEBUG]: #20 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1536569512.1559)
[00:51:52] [Server thread/DEBUG]: #21 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
[00:51:52] [Server thread/DEBUG]: #22 src/pocketmine/Server(1700): pocketmine\Server->start()
[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\)
[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)
[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
[00:51:53] [Server thread/CRITICAL]: ErrorException: "Undefined index: pvp" (EXCEPTION) in "MyPlot-master/src/MyPlot/provider/MySQLProvider" at line 124
[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())
[00:51:53] [Server thread/DEBUG]: #1 MyPlot-master/src/MyPlot/MyPlot(238): MyPlot\provider\MySQLProvider->getPlot(string lol, integer 6, integer 6)
[00:51:53] [Server thread/DEBUG]: #2 MyPlot-master/src/MyPlot/EventListener(231): MyPlot\MyPlot->getPlotByPosition(pocketmine\level\Location object)
[00:51:53] [Server thread/DEBUG]: #3 src/pocketmine/plugin/MethodEventExecutor(38): MyPlot\EventListener->onPlayerMove(pocketmine\event\player\PlayerMoveEvent object)
[00:51:53] [Server thread/DEBUG]: #4 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(MyPlot\EventListener object, pocketmine\event\player\PlayerMoveEvent object)
[00:51:53] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginManager(692): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerMoveEvent object)
[00:51:53] [Server thread/DEBUG]: #6 src/pocketmine/Player(1600): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerMoveEvent object)
[00:51:53] [Server thread/DEBUG]: #7 src/pocketmine/Player(1707): pocketmine\Player->processMovement(integer 1)
[00:51:53] [Server thread/DEBUG]: #8 src/pocketmine/level/Level(741): pocketmine\Player->onUpdate(integer 572)
[00:51:53] [Server thread/DEBUG]: #9 src/pocketmine/Server(2357): pocketmine\level\Level->doTick(integer 572)
[00:51:53] [Server thread/DEBUG]: #10 src/pocketmine/Server(2514): pocketmine\Server->checkTickUpdates(integer 572, double 1536569512.7396)
[00:51:53] [Server thread/DEBUG]: #11 src/pocketmine/Server(2256): pocketmine\Server->tick()
[00:51:53] [Server thread/DEBUG]: #12 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
[00:51:53] [Server thread/DEBUG]: #13 src/pocketmine/Server(1700): pocketmine\Server->start()
[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\)
[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)
[00:51:53] [Server thread/DEBUG]: Level "lol" took 436ms, setting tick rate to 8 ticks

@Aericio Aericio changed the title /p info error with MySQL MySQL: MyPlot commands + movement errors due to "Undefined index: pvp" Sep 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
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.