Closed isoz closed 6 years ago
When using the warp command console throws error below and nothing happens.
This server is running PocketMine-MP 1.7dev 「[REDACTED]」 implementing API version 3.0.0-ALPHA10 for Minecraft: PE v1.2.8
MyPlot v1.2.2
2018-01-15 [02:05:01] [Server thread/CRITICAL]: Unhandled exception executing command 'p warp 1;5' in plot: Argument 2 passed to MyPlot\provider\SQLiteDataProvider::getPlot() must be of the type integer, string given, called in phar:///home/creative/plugins/MyPlot.phar/src/MyPlot/subcommand/WarpSubCommand.php on line 40 2018-01-15 [02:05:01] [Server thread/CRITICAL]: TypeError: "Argument 2 passed to MyPlot\provider\SQLiteDataProvider::getPlot() must be of the type integer, string given, called in phar:///home/creative/plugins/MyPlot.phar/src/MyPlot/subcommand/WarpSubCommand.php on line 40" (EXCEPTION) in "plugins/MyPlot.phar/src/MyPlot/provider/SQLiteDataProvider" at line 135 2018-01-15 [02:05:01] [Server thread/DEBUG]: #0 plugins/MyPlot.phar/src/MyPlot/subcommand/WarpSubCommand(40): MyPlot\provider\SQLiteDataProvider->getPlot(string plots, string 1, string 5) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #1 plugins/MyPlot.phar/src/MyPlot/Commands(121): MyPlot\subcommand\WarpSubCommand->execute(pocketmine\Player object, array Array()) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #2 src/pocketmine/command/SimpleCommandMap(258): MyPlot\Commands->execute(pocketmine\Player object, string p, array Array()) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #3 src/pocketmine/Server(1980): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string p warp 1;5) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #4 src/pocketmine/Player(2085): pocketmine\Server->dispatchCommand(pocketmine\Player object, string p warp 1;5) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(220): pocketmine\Player->chat(string /p warp 1;5) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(118): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #10 src/pocketmine/Player(2963): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #12 src/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 188.250.240.221:55832, raklib\protocol\EncapsulatedPacket object, integer 0) 2018-01-15 [02:05:01] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(82): raklib\server\ServerHandler->handlePacket() 2018-01-15 [02:05:01] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process() 2018-01-15 [02:05:01] [Server thread/DEBUG]: #15 src/pocketmine/Server(2520): pocketmine\network\Network->processInterfaces() 2018-01-15 [02:05:01] [Server thread/DEBUG]: #16 src/pocketmine/Server(2272): pocketmine\Server->tick() 2018-01-15 [02:05:01] [Server thread/DEBUG]: #17 src/pocketmine/Server(2147): pocketmine\Server->tickProcessor() 2018-01-15 [02:05:01] [Server thread/DEBUG]: #18 src/pocketmine/Server(1735): pocketmine\Server->start() 2018-01-15 [02:05:01] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(552): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/creative/, string /home/creative/, string /home/creative/plugins/)
When using the warp command console throws error below and nothing happens.
Reproducing the issue
Client information
This server is running PocketMine-MP 1.7dev 「[REDACTED]」 implementing API version 3.0.0-ALPHA10 for Minecraft: PE v1.2.8
MyPlot v1.2.2
Optional information