poggit-orphanage / EconomyS

The massive economy plugin with many features
GNU General Public License v3.0
19 stars 62 forks source link

Sell remove #42

Closed Bruth78 closed 5 years ago

Bruth78 commented 5 years ago

I’m setting a Shop up with signs but i did a sell sign falsely so I wanted remove it but then I got an Internal Server Error: [12:11:08] [Server thread/CRITICAL]: ErrorException: "Undefined index: y" (EXCEPTION) in "plugins/EconomySell_dev-29.phar/src/onebone/economysell/EconomySell" at line 286 [12:11:08] [Server thread/DEBUG]: #0 plugins/EconomySell_dev-29.phar/src/onebone/economysell/EconomySell(286): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined index: y, string phar:///home/container/plugins/EconomySell_dev-29.phar/src/onebone/economysell/EconomySell.php, integer 286, array Array()) [12:11:08] [Server thread/DEBUG]: #1 src/pocketmine/plugin/MethodEventExecutor(38): onebone\economysell\EconomySell->onBlockTouch(pocketmine\event\player\PlayerInteractEvent object) [12:11:08] [Server thread/DEBUG]: #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(onebone\economysell\EconomySell object, pocketmine\event\player\PlayerInteractEvent object) [12:11:08] [Server thread/DEBUG]: #3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerInteractEvent object) [12:11:08] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(1901): pocketmine\event\Event->call() [12:11:08] [Server thread/DEBUG]: #5 src/pocketmine/Player(2405): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\ItemBlock object, integer 4, pocketmine\math\Vector3 object, pocketmine\Player object, boolean 1) [12:11:08] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(149): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [12:11:08] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(156): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [12:11:08] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [12:11:08] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(119): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object) [12:11:08] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) [12:11:08] [Server thread/DEBUG]: #11 src/pocketmine/Player(3111): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [12:11:08] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(170): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) [12:11:08] [Server thread/DEBUG]: #13 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 81.159.155.240 62274, raklib\protocol\EncapsulatedPacket object, integer 0) [12:11:08] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(110): raklib\server\ServerHandler->handlePacket() [12:11:08] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(100): pocketmine\network\mcpe\RakLibInterface->process() [12:11:08] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [12:11:08] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [12:11:08] [Server thread/DEBUG]: #18 src/pocketmine/Server(2345): pocketmine\snooze\SleeperHandler->sleepUntil(double 1552219868.5929) [12:11:08] [Server thread/DEBUG]: #19 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor() [12:11:08] [Server thread/DEBUG]: #20 src/pocketmine/Server(1784): pocketmine\Server->start() [12:11:08] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/container/, string /home/container/plugins/)

Thanks :)

Bruth78 commented 5 years ago

Anyone?

Awzaw commented 5 years ago

I'm looking into this, but when you say

so I wanted remove it but then I got an Internal Server Error

I think you mean that you broke the block that you had defined as a shop instead of removing it, is that correct? If so, that shouldn't be possible... can you explain in more detail?

Bruth78 commented 5 years ago

Oh hey. I wasn’t expecting anyone to actually respond anymore. So, @Awzaw, whenever I tried to remove the command from the block by simply taping onto the sign, nothing happens. Then I tried to destroy the block and then I got an internal server error.

Awzaw commented 5 years ago

I tried to remove the command from the block by simply taping onto the sign

Had you typed /sell remove before tapping the block?

Bruth78 commented 5 years ago

Yeah I did.

Awzaw commented 5 years ago

Fixed in ec4c3eff3a57