muqsit / chestshop Goto Github PK
View Code? Open in Web Editor NEWChestShop for PocketMine-MP (pmmp)
Home Page: https://poggit.pmmp.io/ci/Muqsit/ChestShop/ChestShop
ChestShop for PocketMine-MP (pmmp)
Home Page: https://poggit.pmmp.io/ci/Muqsit/ChestShop/ChestShop
Could You please bump IT to the latest PMMP Api please.
Notice: Trying to get property of non-object in /root/pvp/plugins/ChestShop-master/src/ChestShop/EventListener.php on line 85
[Tesseract] [05:56:25] CRITICAL> "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v1.0.0': Call to a member function getValue() on null on ChestShop\EventListener
[Tesseract] [05:56:25] CRITICAL> Error: "Call to a member function getValue() on null" (EXCEPTION) in "/plugins/ChestShop-master/src/ChestShop/EventListener" at line 85
Core Tesseract)
When I did /cs remove 1 1
This happened:
[19:53:20] [Server thread/CRITICAL]: Unhandled exception executing command 'cs remove 1 1' in chestshop: Undefined offset: 24
[19:53:20] [Server thread/CRITICAL]: ErrorException: "Undefined offset: 24" (EXCEPTION) in "ChestShop-master/src/ChestShop/Main" at line 304
[19:53:20] [Server thread/DEBUG]: #0 ChestShop-master/src/ChestShop/Main(304): pocketmine\error_handler(integer 8, string Undefined offset: 24, string C:\Users\PC\Desktop\PocketMine-MP\plugins\ChestShop-master\src\ChestShop\Main.php, integer 304, array Array())
[19:53:20] [Server thread/DEBUG]: #1 ChestShop-master/src/ChestShop/Main(384): ChestShop\Main->removeItemOffShop(integer 1, integer 1)
[19:53:20] [Server thread/DEBUG]: #2 src/pocketmine/command/PluginCommand(58): ChestShop\Main->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string cs, array Array())
[19:53:20] [Server thread/DEBUG]: #3 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string cs, array Array())
[19:53:20] [Server thread/DEBUG]: #4 src/pocketmine/Server(1946): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string cs remove 1 1)
[19:53:20] [Server thread/DEBUG]: #5 src/pocketmine/Player(2188): pocketmine\Server->dispatchCommand(pocketmine\Player object, string cs remove 1 1)
[19:53:20] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(113): pocketmine\Player->chat(string ./cs remove 1 1)
[19:53:20] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/TextPacket(128): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleText(pocketmine\network\mcpe\protocol\TextPacket object)
[19:53:20] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\TextPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[19:53:20] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\TextPacket object)
[19:53:20] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[19:53:20] [Server thread/DEBUG]: #11 src/pocketmine/Player(3031): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[19:53:20] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(153): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[19:53:20] [Server thread/DEBUG]: #13 vendor/pocketmine/raklib/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.15.17 54684, raklib\protocol\EncapsulatedPacket object, integer 0)
[19:53:20] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(94): raklib\server\ServerHandler->handlePacket()
[19:53:20] [Server thread/DEBUG]: #15 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
[19:53:20] [Server thread/DEBUG]: #16 src/pocketmine/Server(2495): pocketmine\network\Network->processInterfaces()
[19:53:20] [Server thread/DEBUG]: #17 src/pocketmine/Server(2243): pocketmine\Server->tick()
[19:53:20] [Server thread/DEBUG]: #18 src/pocketmine/Server(2119): pocketmine\Server->tickProcessor()
[19:53:20] [Server thread/DEBUG]: #19 src/pocketmine/Server(1701): pocketmine\Server->start()
[19:53:20] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\PC\Desktop\PocketMine-MP\, string C:\Users\PC\Desktop\PocketMine-MP\plugins\)
[19:53:20] [Server thread/DEBUG]: #21 C:/Users/PC/Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users/PC/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
Could I use this same code to sell items instead of Buying or could you add that? That would be cool
42:01] [Server thread/CRITICAL]: Unhandled exception executing command 'cs' in chestshop: Return value of ChestShop\Chest\CustomChest::getInventory() must be an instance of ChestShop\Chest\CustomChestInventory, null returned
[17:42:01] [Server thread/CRITICAL]: TypeError: "Return value of ChestShop\Chest\CustomChest::getInventory() must be an instance of ChestShop\Chest\CustomChestInventory, null returned" (EXCEPTION) in "ChestShop_v3.phar/src/ChestShop/Chest/CustomChest" at line 42
I get the error wen I had splash potion in hand.
PocketMine-MP Crash Dump Sun May 21 13:13:08 CEST 2017
Error: Call to a member function getItem() on null
File: /src/pocketmine/tile/Chest
Line: 78
Type: notice
Code:
[69]
[70] parent::close();
[71] }
[72] }
[73]
[74] public function saveNBT(){
[75] $this->namedtag->Items = new ListTag("Items", []);
[76] $this->namedtag->Items->setTagType(NBT::TAG_Compound);
[77] for($index = 0; $index < $this->getSize(); ++$index){
[78] $this->setItem($index, $this->inventory->getItem($index));
[79] }
[80] }
[81]
[82] /**
[83] * @return int
[84] */
[85] public function getSize(){
[86] return 27;
[87] }
[88]
Backtrace:
#0 /src/pocketmine/level/format/io/region/Anvil(85): pocketmine\tile\Chest->saveNBT(boolean)
#1 /src/pocketmine/level/format/io/region/RegionLoader(178): pocketmine\level\format\io\region\Anvil->nbtSerialize(pocketmine\level\format\Chunk object)
#2 /src/pocketmine/level/format/io/region/McRegion(313): pocketmine\level\format\io\region\RegionLoader->writeChunk(pocketmine\level\format\Chunk object)
#3 /src/pocketmine/level/Level(996): pocketmine\level\format\io\region\McRegion->saveChunk(integer 39, integer 61)
#4 /src/pocketmine/level/Level(984): pocketmine\level\Level->saveChunks(boolean)
#5 /src/pocketmine/Server(2265): pocketmine\level\Level->save(boolean )
#6 /src/pocketmine/Server(2405): pocketmine\Server->doAutoSave(boolean)
#7 /src/pocketmine/Server(2141): pocketmine\Server->tick(boolean)
#8 /src/pocketmine/Server(2023): pocketmine\Server->tickProcessor(boolean)
#9 /src/pocketmine/Server(1642): pocketmine\Server->start(boolean)
#10 /src/pocketmine/PocketMine(492): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gs/gs/data/servers/4832880/pocketmine.phar/, string /home/gs/gs/data/servers/4832880/, string /home/gs/gs/data/servers/4832880/plugins/)
#11 (1): require_once(string phar:///home/gs/gs/data/servers/4832880/pocketmine.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 1.6.2dev #0 [Protocol 107; API 3.0.0-ALPHA5]
Git commit: 0000000000000000000000000000000000000000
uname -a: x
PHP Version: 7.0.9
Zend version: 3.0.0
OS : Linux, linux
This plugin will not work on my server. I add it as a .phar but it won't work...
[Tesseract] [9:50 pm] CRITICAL> "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v3': Call to undefined method pocketmine\inventory\BaseTransaction::getSourceItem() on ChestShop\EventListener
[Tesseract] [9:50 pm] CRITICAL> Error: "Call to undefined method pocketmine\inventory\BaseTransaction::getSourceItem()" (EXCEPTION) in "/plugins/ChestShop-master/src/ChestShop/EventListener" at line 86
Are you using this plugin for trade and for enchant buy on your factions server?
Hi, in 1.2 will you be adding like a custom shop ui/
Likea slider to choose how many items and the price this would b great!
Doesn't work on http://github.com/pmmp/PocketMine-MP
[15:53:54] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\item\Item::setNamedTag() must be an instance of pocketmine\nbt\tag\CompoundTag, boolean given, called in /root/plugins/ChestShop-master/src/ChestShop/Main.php on line 122" (EXCEPTION) in "/src/pocketmine/item/Item" at line 774
Critical error while using /cs to try to open the chest shop:
Server thread/CRITICAL TypeError: "Argument 1 passed to pocketmine\network\mcpe\protocol\DataPacket::putBlockPosition() must be of the type integer, float given, called in phar:///pmmp-latest.phar/src/pocketmine/network/mcpe/protocol/UpdateBlockPacket.php on line 60" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/DataPacket" at line 305
10.07 02:55:31 [Server] Server thread/CRITICAL Unhandled exception executing command 'cshop' in chestshop: Argument 1 passed to pocketmine\network\mcpe\protocol\DataPacket::putBlockPosition() must be of the type integer, float given, called in phar:///pmmp-latest.phar/src/pocketmine/network/mcpe/protocol/UpdateBlockPacket.php on line 60
My server could really use this, it really simplifies the way a shop on a faction server works, i would really appreciate it if this was fixed
I think if you want to implement ChestShop a little more, Sell would be a best options to make this plugin better
Sorry for spamming issue, won't happen again
Btw, best plugin ever
using pmmp latest release
error:-
[Server thread/CRITICAL]: Unhandled exception executing command 'cs' in chestshop: Return value of ChestShop\Chest\CustomChest::getInventory() must be an instance of ChestShop\Chest\CustomChestInventory, null returned
The plugin gave problem to put or pick up items on normal chests... Because in the plugin it says
Set on null.
Maybe u can try to fix that, i really like your chest shop, and 100 players waiting to open the server, but this plugin triggered me.
Iv found that when using MCPE Win10 ediion, I can simply move over the chest shop items into my inventory without being charged. And the paper that is used for navigation can be moved into your inventory just by tapping it.
Another glitch. Say I have a 64 steaks item in the chest shop, I tap the 64 steak in shop and it says "tap again to purchase for xx". It still moves over 1 steak to my inventory even though I haven't baught it yet. after tapping again it gives me 64 steaks plus 2 I got just from tapping it.
even if u cant afford an item, it still gives u the item x1.
Also this error is shown in console when tapping an item u cant afford.
`[16:49:04] [Server thread/CRITICAL]: Error: "Call to a member function sendBlocks() on null" (EXCEPTION) in "/plugins/ChestShop-master/src/ChestShop/Chest/CustomChestInventory" at line 46
[16:49:04] [Server thread/DEBUG]: #0 /src/pocketmine/Player(3566): pocketmine\inventory\BaseInventory->close(pocketmine\Player Player(7))
[16:49:04] [Server thread/DEBUG]: #1 /src/pocketmine/Player(3092): pocketmine\Player->removeWindow(ChestShop\Chest\CustomChestInventory object)
[16:49:04] [Server thread/DEBUG]: #2 /src/pocketmine/network/RakLibInterface(95): pocketmine\Player->close(pocketmine\event\TranslationContainer ..e%multiplayer.player.left, string client disconnect)
[16:49:04] [Server thread/DEBUG]: #3 /src/raklib/server/ServerHandler(131): pocketmine\network\RakLibInterface->closeSession(string 192.168.0.3:19132, string client disconnect)
[16:49:04] [Server thread/DEBUG]: #4 /src/pocketmine/network/RakLibInterface(74): raklib\server\ServerHandler->handlePacket(boolean)
[16:49:04] [Server thread/DEBUG]: #5 /src/pocketmine/network/Network(156): pocketmine\network\RakLibInterface->process(boolean)
[16:49:04] [Server thread/DEBUG]: #6 /src/pocketmine/Server(2334): pocketmine\network\Network->processInterfaces(boolean)
[16:49:04] [Server thread/DEBUG]: #7 /src/pocketmine/Server(2087): pocketmine\Server->tick(boolean)
[16:49:04] [Server thread/DEBUG]: #8 /src/pocketmine/Server(1969): pocketmine\Server->tickProcessor(boolean)
[16:49:04] [Server thread/DEBUG]: #9 /src/pocketmine/Server(1590): pocketmine\Server->start(boolean)
[16:49:04] [Server thread/DEBUG]: #10 /src/pocketmine/PocketMine(492): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Desktop\New folder (10), string C:\Users\Gamer27832 server\Desktop\New folder (10), string C:\Users\Desktop\New folder (10)\plugins)
[16:49:04] [Server thread/CRITICAL]: [Network] Stopped interface pocketmine\network\RakLibInterface due to Call to a member function sendBlocks() on null
`
[20:50:20] [Server thread/CRITICAL]: Error: "Class 'muqsit\invmenu\InvMenuHandler' not found" (EXCEPTION) in "ChestShop-master/src/muqsit/chestshop/ChestShop" at line 50 [20:50:20] [Server thread/DEBUG]: #0 src/pocketmine/plugin/PluginBase(90): muqsit\chestshop\ChestShop->onEnable() [20:50:20] [Server thread/DEBUG]: #1 PocketMine-DevTools.phar/src/FolderPluginLoader/FolderPluginLoader(131): pocketmine\plugin\PluginBase->setEnabled(boolean 1) [20:50:20] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginManager(576): FolderPluginLoader\FolderPluginLoader->enablePlugin(muqsit\chestshop\ChestShop object) [20:50:20] [Server thread/DEBUG]: #3 src/pocketmine/Server(1919): pocketmine\plugin\PluginManager->enablePlugin(muqsit\chestshop\ChestShop object) [20:50:20] [Server thread/DEBUG]: #4 src/pocketmine/Server(1905): pocketmine\Server->enablePlugin(muqsit\chestshop\ChestShop object) [20:50:20] [Server thread/DEBUG]: #5 src/pocketmine/Server(1699): pocketmine\Server->enablePlugins(integer 1) [20:50:20] [Server thread/DEBUG]: #6 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\PC\Desktop\PocketMine-MP\, string C:\Users\PC\Desktop\PocketMine-MP\plugins\) [20:50:20] [Server thread/DEBUG]: #7 C:/Users/PC/Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users/PC/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
I keep getting this issue every time I try to put something into my inventory
17.02 19:08:34 [Server] Server thread/CRITICAL Error: "Call to a member function getTargetItem() on null" (EXCEPTION) in "/ChestShop.phar/src/ChestShop/EventListener" at line 81
17.02 19:08:34 [Server] Server thread/CRITICAL "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v2': Call to a member function getTargetItem() on null on ChestShop\EventListener
Like the title said, won't show off in the Categories section
I try so hard but it won't appear
muq dude just read my dms im Blazed and desperate about this, r you mad on me or something :/
When i m joining the server --> 00:12:36] [Server thread/INFO]: akaSnapy[/92.65.133.1729132] [ClientID: 6170396148063607870] logged in with entity id 1 at (world, 226.9645, 23, 841.6395)
[00:12:37] [Server thread/INFO]: AkaSnapy joined
[00:12:39] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v2': Call to a member function getTargetItem() on null on ChestShop\EventListener
[00:12:39] [Server thread/CRITICAL]: Error: "Call to a member function getTargetItem() on null" (EXCEPTION) in "/plugins/ChestShop/src/ChestShop/EventListener" at line 81
-->When i m buying or tapping the paper in CS-->
[00:13:48] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v2': Call to a member function getTargetItem() on null on ChestShop\EventListener
[00:13:48] [Server thread/CRITICAL]: Error: "Call to a member function getTargetItem() on null" (EXCEPTION) in "/plugins/ChestShop/src/ChestShop/EventListener" at line 81
[00:13:51] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v2': Call to a member function getTargetItem() on null on ChestShop\EventListener
[00:13:51] [Server thread/CRITICAL]: Error: "Call to a member function getTargetItem() on null" (EXCEPTION) in "/plugins/ChestShop/src/ChestShop/EventListener" at line 81
[00:13:51] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v2': Call to a member function getTargetItem() on null on ChestShop\EventListener
[00:13:51] [Server thread/CRITICAL]: Error: "Call to a member function getTargetItem() on null" (EXCEPTION) in "/plugins/ChestShop/src/ChestShop/EventListener" at line 81
[00:13:51] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v2': Call to a member function getTargetItem() on null on ChestShop\EventListener
[00:13:51] [Server thread/CRITICAL]: Error: "Call to a member function getTargetItem() on null" (EXCEPTION) in "/plugins/ChestShop/src/ChestShop/EventListener" at line 81
When I load the plug in there's a warning saying this
Warning: yaml_parse_file(/storage/emulated/0/Pocketmine/plugins/ChestShop/shops.yml): failed to open stream: No such file or directory in /storage/emulated/0/Pocketmine/plugins/ChestShop-master/src/ChestShop/Main.php on line 84
Used this plugin for some weeks... This is really awesome but... I've looked for some bugs:
Normal chests (block) don't work (chestshop plugin doesn't permise this) ... I can't put or pick up item from normal chests...
When i try to buy some items on it, and i haven't money... It stop raklib interface and crashed... (always)
Errors:
could not pass event: Pocketmine/event/inventory/inventorytransictionevent Call to a member function getTargetItem on chestshop event listener.
Trying to get property of non-object in... Customchest.php line 38 --- function getValue() on null Stopped raklib interface
Make it so You need to double tap to buy
Players are able to get items from the chestshop for free by right clicking and dragging it to their Inventories, please help
Can you please fix this @Muqsit
[08:50:29] [CRITICAL]: Unhandled exception executing command 'cs' in chestshop: Argument 1 passed to pocketmine\utils\BinaryStream::putVarInt() must be of the type integer, float given, called in phar:///home/BlawoHD/Factions/PocketMine-MO.phar/src/pocketmine/network/mcpe/protocol/DataPacket.php on line 306
[08:50:29] [CRITICAL]: TypeError: "Argument 1 passed to pocketmine\utils\BinaryStream::putVarInt() must be of the type integer, float given, called in phar:///home/BlawoHD/Factions/PocketMine-MP.phar/src/pocketmine/network/mcpe/protocol/DataPacket.php on line 306" (EXCEPTION) in "/src/pocketmine/utils/BinaryStream" at line 321
[08:50:33] [CRITICAL]: Unhandled exception executing command 'cshop' in chestshop: Argument 1 passed to pocketmine\utils\BinaryStream::putVarInt() must be of the type integer, float given, called in phar:///home/BlawoHD/Factions/PocketMine-MP.phar/src/pocketmine/network/mcpe/protocol/DataPacket.php on line 306
[08:50:33] [CRITICAL]: TypeError: "Argument 1 passed to pocketmine\utils\BinaryStream::putVarInt() must be of the type integer, float given, called in phar:///home/BlawoHD/Factions/PocketMine-MP.phar/src/pocketmine/network/mcpe/protocol/DataPacket.php on line 306" (EXCEPTION) in "/src/pocketmine/utils/BinaryStream" at line 321
an Perform error on this command on version 1.2.10
When a player does /cs To open the GUI and when they take an item it doesn't display price and non op and op people can just take the item and it doesn't take thier money I'm using all Economy API's
Can you stop the players from dragging items out of the shop ui (use with GrabBag plugin and send the command /clearinv and /clearhotbar if that happens (or use the removing item command))
[18:08:38] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\utils\BinaryStream::put() must be of the type string, boolean given, called in C:\Users\mikha\Desktop\PocketMine-MP\src\pocketmine\network\mcpe\protocol\BlockEntityDataPacket.php on line 50" (EXCEPTION) in "vendor/pocketmine/pocketmine-binaryutils/src/BinaryStream" at line 84
[18:08:38] [Server thread/DEBUG]: #0 src/pocketmine/network/mcpe/protocol/BlockEntityDataPacket(50): pocketmine\utils\BinaryStream->put(boolean )
[18:08:38] [Server thread/DEBUG]: #1 src/pocketmine/network/mcpe/protocol/DataPacket(93): pocketmine\network\mcpe\protocol\BlockEntityDataPacket->encodePayload()
[18:08:38] [Server thread/DEBUG]: #2 src/pocketmine/network/mcpe/RakLibInterface(214): pocketmine\network\mcpe\protocol\DataPacket->encode()
[18:08:38] [Server thread/DEBUG]: #3 src/pocketmine/Player(3018): pocketmine\network\mcpe\RakLibInterface->putPacket(pocketmine\Player object, pocketmine\network\mcpe\protocol\BlockEntityDataPacket object, boolean , boolean )
[18:08:38] [Server thread/DEBUG]: #4 src/pocketmine/Player(3038): pocketmine\Player->sendDataPacket(pocketmine\network\mcpe\protocol\BlockEntityDataPacket object, boolean , boolean )
[18:08:38] [Server thread/DEBUG]: #5 virions/InvMenu/src/muqsit/invmenu/inventories/BaseFakeInventory(126): pocketmine\Player->dataPacket(pocketmine\network\mcpe\protocol\BlockEntityDataPacket object)
[18:08:38] [Server thread/DEBUG]: #6 virions/InvMenu/src/muqsit/invmenu/inventories/BaseFakeInventory(71): muqsit\invmenu\inventories\BaseFakeInventory->sendFakeTile(pocketmine\Player object)
[18:08:38] [Server thread/DEBUG]: #7 src/pocketmine/inventory/BaseInventory(396): muqsit\invmenu\inventories\BaseFakeInventory->onOpen(pocketmine\Player object)
[18:08:38] [Server thread/DEBUG]: #8 src/pocketmine/Player(3755): pocketmine\inventory\BaseInventory->open(pocketmine\Player object)
[18:08:38] [Server thread/DEBUG]: #9 virions/InvMenu/src/muqsit/invmenu/InvMenu(157): pocketmine\Player->addWindow(muqsit\invmenu\inventories\ChestInventory object)
[18:08:38] [Server thread/DEBUG]: #10 plugins/ChestShop-master/src/ChestShop/Main(184): muqsit\invmenu\InvMenu->send(pocketmine\Player object)
[18:08:38] [Server thread/DEBUG]: #11 plugins/ChestShop-master/src/ChestShop/Main(412): ChestShop\Main->sendChestShop(pocketmine\Player object)
[18:08:38] [Server thread/DEBUG]: #12 src/pocketmine/command/PluginCommand(58): ChestShop\Main->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string cs, array Array())
[18:08:38] [Server thread/DEBUG]: #13 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string cs, array Array())
[18:08:38] [Server thread/DEBUG]: #14 src/pocketmine/Server(1989): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string cs)
[18:08:38] [Server thread/DEBUG]: #15 src/pocketmine/Player(2117): pocketmine\Server->dispatchCommand(pocketmine\Player object, string cs)
[18:08:38] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(220): pocketmine\Player->chat(string /cs)
[18:08:38] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
[18:08:38] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[18:08:38] [Server thread/DEBUG]: #19 src/pocketmine/network/mcpe/protocol/BatchPacket(118): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
[18:08:38] [Server thread/DEBUG]: #20 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[18:08:38] [Server thread/DEBUG]: #21 src/pocketmine/Player(2964): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[18:08:38] [Server thread/DEBUG]: #22 src/pocketmine/network/mcpe/RakLibInterface(149): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[18:08:38] [Server thread/DEBUG]: #23 vendor/pocketmine/raklib/server/ServerHandler(103): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.0.87 1026, raklib\protocol\EncapsulatedPacket object, integer 0)
[18:08:38] [Server thread/DEBUG]: #24 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket()
[18:08:38] [Server thread/DEBUG]: #25 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
[18:08:38] [Server thread/DEBUG]: #26 src/pocketmine/Server(2531): pocketmine\network\Network->processInterfaces()
[18:08:38] [Server thread/DEBUG]: #27 src/pocketmine/Server(2283): pocketmine\Server->tick()
[18:08:38] [Server thread/DEBUG]: #28 src/pocketmine/Server(2158): pocketmine\Server->tickProcessor()
[18:08:38] [Server thread/DEBUG]: #29 src/pocketmine/Server(1744): pocketmine\Server->start()
[18:08:38] [Server thread/DEBUG]: #30 src/pocketmine/PocketMine(556): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\mikha\Desktop\PocketMine-MP\, string C:\Users\mikha\Desktop\PocketMine-MP\plugins\)
Notice: Trying to get property of non-object in C:\Users\Administrator\Downloads\PocketMine-MP - Copy (2)\plugins\ChestShop-c6c8acf20316859e2ae79a345f0e1f23d0f26b74\src\ChestShop\EventListener.php on line 70
[Tesseract] [19:00:49] CRITICAL> "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v1.0.0': Call to a member function getValue() on null on ChestShop\EventListener
[Tesseract] [19:00:49] CRITICAL> Error: "Call to a member function getValue() on null" (EXCEPTION) in "/ChestShop-c6c8acf20316859e2ae79a345f0e1f23d0f26b74/src/ChestShop/EventListener" at line 70
Do the /reload command make players can take whatever item in the categories in ChestShop
Main::fillInventoryWithShop()
generates a list of ChestShop items for a specific page every time a player requests a ChestShop window which takes unneeded amount of CPU time.
The reason why the list of items is regenerated on runtime is only because the ChestShop contents can be modified (added/removed) on runtime (could add a feature to disable runtime modification for a speed-boost).
I don't think anyone would be modifying ChestShop soo many times that the plugin requires the ChestShop list to be regenerated every time a player turns to page x or requests to view the ChestShop.
Not to mention, ChestShop stores a serialized version of every item's NBT tag (which is going to be another issue). unserialize
is called for each Item on the page during Main::fillInventoryWithShop()
.
[20:39:18] CRITICAL> "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v3': Call to undefined method pocketmine\inventory\BaseTransaction::getSourceItem() on ChestShop\EventListener
[20:39:18] CRITICAL> Error: "Call to undefined method pocketmine\inventory\BaseTransaction::getSourceItem()" (EXCEPTION) in "/plugins/ChestShop-master/src/ChestShop/EventListener" at line 86
When you do /cs it says "An Unknown Error Occurred While Trying To Perform This Command" idk if it's just PocketMine-MP
14:37:38 [Server] Server thread/CRITICAL Error: "Call to a member function getValue() on null" (EXCEPTION) in "/ChestShop.phar/src/ChestShop/EventListener" at line 87
13.02 14:37:38 [Server] Server thread/CRITICAL "Could not pass event 'pocketmine\event\inventory\InventoryTransactionEvent' to 'ChestShop v1.0.0': Call to a member function getValue() on null on ChestShop\EventListener
Add support for slappers
This is the error I get
02 13:15:46 [Server] CRITICAL TypeError: "Argument 1 passed to ChestShop\Main::sendChestShop() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given, called in phar:///plugins/phar_ChestShop-master_8ivCd7k9vlLL03H.phar/src/ChestShop/Main.php on line 219" (EXCEPTION) in "/phar_ChestShop-master_8ivCd7k9vlLL03H.phar/src/ChestShop/Main" at line 92
2017-02-17 [10:28:36] [Server thread/CRITICAL]: Could not load plugin 'ChestShop': Unknown dependency
2017-02-17 [10:28:36] [Server thread/CRITICAL]: Could not load plugin 'ChestShop': Circular dependency detected
[Server thread/CRITICAL]: Não foi possível passar o evento 'pocketmine\event\inventory\InventoryTransactionEvent' para 'ChestShop v3': Call to undefined method pocketmine\inventory\transaction\action\DropItemAction::getInventory() em ChestShop\EventListener
[23:20:07] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\inventory\transaction\action\DropItemAction::getInventory()" (EXCEPTION) in "ChestShop.phar/src/ChestShop/EventListener" at line 76
On ALPHA10 not working please fix I really appreciate it if you do!
21:20:50 CRITICAL > ErrorException: "yaml_parse_file(C:\Users\Denniss\Desktop\PocketMine-MP\plugins\ChestShop/shops.yml): failed to open stream: No such file or directory" (EXCEPTION) in "ChestShop_dev-22.phar/src/ChestShop/Main" at line 111
21:20:50 DEBUG > #0 (): pocketmine\error_handler(integer 2, string yaml_parse_file(C:\Users\Denniss\Desktop\PocketMine-MP\plugins\ChestShop/shops.yml): failed to open stream: No such file or directory, string phar://C:/Users/Denniss/Desktop/PocketMine-MP/plugins/ChestShop_dev-22.phar/src/ChestShop/Main.php, integer 111, array Array())
21:20:50 DEBUG > #1 ChestShop_dev-22.phar/src/ChestShop/Main(111): yaml_parse_file(string C:\Users\Denniss\Desktop\PocketMine-MP\plugins\ChestShop/shops.yml)
21:20:50 DEBUG > #2 src/pocketmine/plugin/PluginBase(90): ChestShop\Main->onEnable()
21:20:50 DEBUG > #3 src/pocketmine/plugin/PharPluginLoader(122): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
21:20:50 DEBUG > #4 src/pocketmine/plugin/PluginManager(584): pocketmine\plugin\PharPluginLoader->enablePlugin(ChestShop\Main object)
21:20:50 DEBUG > #5 src/pocketmine/Server(1987): pocketmine\plugin\PluginManager->enablePlugin(ChestShop\Main object)
21:20:50 DEBUG > #6 src/pocketmine/Server(1973): pocketmine\Server->enablePlugin(ChestShop\Main object)
21:20:50 DEBUG > #7 src/pocketmine/Server(1767): pocketmine\Server->enablePlugins(integer 1)
21:20:50 DEBUG > #8 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Denniss\Desktop\PocketMine-MP, string C:\Users\Denniss\Desktop\PocketMine-MP\plugins)
21:20:50 DEBUG > #9 C:/Users/Denniss/Desktop/PocketMine-MP/PocketMine-MP.phar(1): require_once(string phar://C:/Users/Denniss/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
13.03 07:07:21 [Server] Server thread/CRITICAL TypeError: "Argument 2 passed to pocketmine\tile\Tile::createTile() must be an instance of pocketmine\level\Level, instance of pocketmine\level\format\Chunk given, called in phar:///plugins/ChestShop.phar/src/ChestShop/Main.php on line 109" (EXCEPTION) in "/src/pocketmine/tile/Tile" at line 85
13.03 07:07:21 [Server] Server thread/CRITICAL Unhandled exception executing command 'cshop' in chestshop: Argument 2 passed to pocketmine\tile\Tile::createTile() must be an instance of pocketmine\level\Level, instance of pocketmine\level\format\Chunk given, called in phar:///plugins/ChestShop.phar/src/ChestShop/Main.php on line 109
And yes I'm on pocketmine
PocketMine-MP Crash Dump Tue Jul 11 14:21:11 UTC 2017
Error: Call to a member function getItem() on null
File: src/pocketmine/tile/Chest
Line: 80
Type: notice
Code:
[71]
[72] parent::close();
[73] }
[74] }
[75]
[76] public function saveNBT(){
[77] $this->namedtag->Items = new ListTag("Items", []);
[78] $this->namedtag->Items->setTagType(NBT::TAG_Compound);
[79] for($index = 0; $index < $this->getSize(); ++$index){
[80] $this->setItem($index, $this->inventory->getItem($index));
[81] }
[82] }
[83]
[84] /**
[85] * @return int
[86] */
[87] public function getSize(){
[88] return 27;
[89] }
[90]
Backtrace:
#0 src/pocketmine/level/format/io/region/Anvil(85): pocketmine\tile\Chest->saveNBT()
#1 src/pocketmine/level/format/io/region/RegionLoader(178): pocketmine\level\format\io\region\Anvil->nbtSerialize(pocketmine\level\format\Chunk object)
#2 src/pocketmine/level/format/io/region/McRegion(317): pocketmine\level\format\io\region\RegionLoader->writeChunk(pocketmine\level\format\Chunk object)
#3 src/pocketmine/level/Level(993): pocketmine\level\format\io\region\McRegion->saveChunk(integer 0, integer -18)
#4 src/pocketmine/level/Level(981): pocketmine\level\Level->saveChunks()
#5 src/pocketmine/Server(2342): pocketmine\level\Level->save(boolean )
#6 src/pocketmine/Server(2485): pocketmine\Server->doAutoSave()
#7 src/pocketmine/Server(2218): pocketmine\Server->tick()
#8 src/pocketmine/Server(2097): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1679): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(514): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///root/PocketMine-MP.phar/, string /root/, string /root/plugins/)
#11 /root/PocketMine-MP.phar(1): require_once(string phar:///root/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 1.6.2dev #0 [Protocol 113; API 3.0.0-ALPHA6]
Git commit: 0000000000000000000000000000000000000000
uname -a: Linux change 2.6.32-48-pve #1 SMP Fri Dec 23 10:22:54 CET 2016 x86_64
PHP Version: 7.0.3
Zend version: 3.0.0
OS : Linux, linux
u can drop items from chest using Ctrl+Q
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.