Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ChestShop 2.0.1

Open your chest shop

  1. FaTe
    Offline

    FaTe New Member

    Joined:
    Apr 10, 2015
    Posts:
    6
    Minecraft User:
    FaTe
    Can you make this plugin for EconomyAPI please :)
    @MinecrafterJPN

    It works great with PM but need it for EconomyAPI. Anyway for me to make it working with EconomyAPI?
    Or you can only make it :/ .
  2. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Call to a member function getSize() on null
    File: /ChestShop_v2.0.1(1).phar/src/ChestShop/EventListener
    Line: 57
    Type: E_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: ChestShop v2.0.1

    Code:
    [48] if ($buyerMoney < $shopInfo['price']) {
    [49] $player->sendMessage("Your money is not enough!");
    [50] return;
    [51] }
    [52] /** @var TileChest $chest */
    [53] $chest = $player->getLevel()->getTile(new Vector3($shopInfo['chestX'], $shopInfo['chestY'], $shopInfo['chestZ']));
    [54] $itemNum = 0;
    [55] $pID = $shopInfo['productID'];
    [56] $pMeta = $shopInfo['productMeta'];
    [57] for ($i = 0; $i < $chest->getSize(); $i++) {
    [58] $item = $chest->getInventory()->getItem($i);
    [59] // use getDamage() method to get metadata of item
    [60] if ($item->getID() === $pID and $item->getDamage() === $pMeta) $itemNum += $item->getCount();
    [61] }
    [62] if ($itemNum < $shopInfo['saleNum']) {
    [63] $player->sendMessage("This shop is out of stock!");
    [64] if (($p = $this->plugin->getServer()->getPlayer($shopInfo['shopOwner'])) !== null) {
    [65] $p->sendMessage("Your ChestShop is out of stock! Replenish I:eek:$pID!");
    [66] }
    [67] return;

    Backtrace:
    #0 (): pocketmine\Server->crashDump()

    PocketMine-MP version: 1.5dev #1153 [Protocol 26; API 1.12.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux sith 3.2.1-aafh #2 SMP Mon Dec 10 18:10:40 CET 2012 x86_64
    PHP Version: 5.6.4
    Zend version: 2.6.0
    OS : Linux, linux

    Loaded plugins:
    PurePerms 1.1.1 by 64FF00 for API(s) 1.11.0
    KeepInventory 1.2.0 by boybook for API(s) 1.0.0
    ToyBox 1.1.0 by aliuly for API(s) 1.10.0
    PocketGuard 2.1.1 by MinecrafterJPN for API(s) 1.10.0
    PocketMoney 4.0.1 by MinecrafterJPN, MinecrafterJPN for API(s) 1.10.0
    SignPortal 1.1.2 by 99leonchang for API(s) 1.3.1
    VoteReward 2.1 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0
    EssentialsPE 1.0.2 by LegendsOfMCPE Team for API(s) 1.9.0
    iProtector 3.0 by LDX for API(s) 1.9.0
    EasyMOTD 1.0a by LDX for API(s) 1.12.0
    SimpleMessages 1.2 by Dutok for API(s) 1.0.0
    SimpleAuth 1.6.0 by PocketMine Team, shoghicp for API(s) 1.8.0
    ChestShop 2.0.1 by MinecrafterJPN, MinecrafterJPN for API(s) 1.10.0
    PocketJobs 2 by MinecrafterJPN for API(s) 1.10.0
    WorldProtect 1.2.4 by aliuly for API(s) 1.10.0
    PureChat 1.2.6 by 64FF00 for API(s) 1.11.0
  3. Fuzzyfury
    Offline

    Fuzzyfury New Member

    Joined:
    Apr 1, 2015
    Posts:
    1
    Minecraft User:
    captin_fuzzyfury
    Hey MinecrafterJPN, is this plugin compatable with MassiveEconomy?
  4. MinecrafterJPN
    Offline

    MinecrafterJPN Active Member Plugin Developer

    Joined:
    Aug 26, 2013
    Posts:
    154
    Plugins:
    9
    Minecraft User:
    MinecrafterJPN
    Thank you for using my plugin.
    I will make ChestShop compatible with those plugins.
  5. MinecrafterJPN
    Offline

    MinecrafterJPN Active Member Plugin Developer

    Joined:
    Aug 26, 2013
    Posts:
    154
    Plugins:
    9
    Minecraft User:
    MinecrafterJPN
    Do you know when that crash occurred?
  6. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    No :/ because i see only crash dump. And if you want you can add unlimited shop option for admins
  7. MinecrafterJPN
    Offline

    MinecrafterJPN Active Member Plugin Developer

    Joined:
    Aug 26, 2013
    Posts:
    154
    Plugins:
    9
    Minecraft User:
    MinecrafterJPN
    Sorry, but I don't know what you mean.
  8. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Now i need items in chest to sell them but so make command which make shop unlimited
  9. MinecrafterJPN
    Offline

    MinecrafterJPN Active Member Plugin Developer

    Joined:
    Aug 26, 2013
    Posts:
    154
    Plugins:
    9
    Minecraft User:
    MinecrafterJPN
    I can't understand "make shop unlimited".
    What is "unlimited"?
  10. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Items dont have to be in chest or"unlimited" amount of items in chest (when i run command)
  11. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Or just when player buy content so in chest stay same amount of items
  12. MinecrafterJPN
    Offline

    MinecrafterJPN Active Member Plugin Developer

    Joined:
    Aug 26, 2013
    Posts:
    154
    Plugins:
    9
    Minecraft User:
    MinecrafterJPN
    You mean a shop which have infinite stocks?
    Creeperface likes this.
  13. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
  14. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Wouldn't be simpler to install signshop? http://forums.pocketmine.net/plugins/signshop.668/
    What would be the point of having the chest if it has unlimited stock.
  15. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    I was using sign shop but it delete all my signs two times!!!! So i will never use signshop.
  16. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Is it support €conomy$ plugin?
  17. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    no
  18. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Plz make it support then....
  19. hihihoholalalolo
    Offline

    hihihoholalalolo New Member

    Joined:
    May 11, 2016
    Posts:
    33
    Minecraft User:
    hihihoho
    I wrote 276 the sign said None:0 :(

Share This Page

Advertisement