Buy not recognizing items in player inventory #91


  • New
  • Defect
Open
Assigned to netherfoam
  • _ForgeUser10483760 created this issue May 4, 2013

    What version of QuickShop are you using? 4.3

    What version + build of Bukkit are you using? 1.5.2.-R0.1-1-g53734d2-b2772jnks

    What is the issue?
    Create a BUY shop for an item such a Stone Axe.
    Hit the shop with an inventory full of Stone Axe's, plugin reports zero inventory available to sell to the shop.

    Copy paste your config:
    #Tax amount (decimal) - Eg, P1 buys $50 worth of stuff from P2.  Therefore, P1 loses $50, P2 gains $(1-0.05)*50, and tax-account gains $(0.05)*50.
    tax: 0
    #The fake player who money from taxing people goes to
    tax-account: tax

    #Should we log transactions/creations to Bukkit\Plugins\QuickShop\qs.log?
    log-actions: true

    #Advanced.  This chooses which economy to hook into.  If it fails, it will fall back to trying vault. Spelling must be exact. Case insensitive.
    # Vault - Will hook into anything vault can hook into (Vault is required for this to work)
    # Satoshis
    # Want yours added? Contact me (Netherfoam) on dev.bukkit.org
    economy: Vault

    #For item-item based economies that don't use virtual coins.
    whole-number-prices-only: false

    database:
        mysql: true
        host: localhost
        port: 3306
        database: minecraft
        user: bukkit
        password: sql4mc

    #Limits the number of shops a person can create and own at a single time.
    limits:
        #Disable these if you're not using them! If this is false, the rest of this section is ignored
        use: false
        #The default number of shops players can make
        default: 10
        #Players with these permissions can create these amounts of shops.
        ranks:
            #Anyone with 'quickshop.vip' permissions, can create 20 shops instead of 10.
            quickshop.vip: 20 #Players with quickshop.vip can make 20 shops.

    #A list of block (materials) which can be used to create shops.
    #By default, chests are added to this list.
    #This will only work for blocks which implement InventoryHolder
    #in other words, no enderchest shops, no shops on dirt blocks, etc.
    #May cause unexpected behaviour with some blocks... Eg don't make a
    #shop on a hopper (It sucks the display item in) and furnace shops
    #allow players to put whatever item they want in all 3 slots and
    #dispenser shops aren't protected from redstone... Etc.
    shop-blocks:
        - CHEST
        - TRAPPED_CHEST

    shop:
        #Cost to make a stall
        cost: 10
        #Should we refund when their shops are deleted/removed/broken?
        refund: false

        #Is there a fee for changing prices on a shop (Help deter endless undercutting)
        price-change-requires-fee: true
        #If price changes require a fee, how much is the fee
        fee-for-price-change: 50

        #Should we try and lock their shops from other players, so people can't steal from them?
        lock: true
        #Should we require players be sneaking to create and use shops?
        sneak-only: false
        #Should we automatically create the sign for the chest?
        auto-sign: true
        #If a player owns an unlimited shop, should they receive the cash from it or not?
        #If you buy from YOUR unlimited shop, you will NEVER be charged $$, regardless of this setting
        pay-unlimited-shop-owners: false
        #Should we place display items on the chests?
        display-items: true
        #Should we place item frames on chests?
        frame-items: true
        #When someone uses /qs find <item>, how far should we search in blocks?
        #This command lets users shop quickly without wasting time searching
        #Settings > 100 WILL cause lag. Don't do it, or don't cry when your server lags.
        find-distance: 45

    #List of items to disallow selling of.  Anyone with quickshop.bypass.<itemID> can bypass it
    blacklist:
        - 7 #Bedrock

    Copy paste your error log, if any:
    None

    What did you do to cause this issue?  Can you repeat it? (If you can't repeat it, neither can I, don't bother posting a ticket about it)
    As above. Yes, seems to happen pretty consistently.

    If any relevant:
    * What version of Vault are you running? v1.2.25-b320
    * What economy and economy version are you running (E.g. BOSE or iConomy 6) Fe v0.6

  • _ForgeUser10483760 added the tags Defect New May 4, 2013
  • netherfoam posted a comment May 4, 2013

    Can i have your server IP? Someone else reported a similar issue but it started working the next day

  • _ForgeUser10483760 posted a comment May 4, 2013

    Ah it's on a test system, not my live server. Let me see if I can spin it up on another port and reconfig firewall. Will post address if I get it to work.

  • _ForgeUser10483760 posted a comment May 4, 2013

    Test system is on my work laptop and the firewall app is locked down so I can't open it up. I have another machine I can move everything to but will take a while. What is it you wanted to try, perhaps I could do it and post results?

  • netherfoam posted a comment May 4, 2013

    Just try this:

    • Clear your inventory completely
    • Give yourself a diamond
    • Give yourself a chest
    • Place diamond, create shop
    • Do /qs buy on the shop
    • Hit the shop, try to sell the diamond.

    Success/Failure?

  • _ForgeUser10483760 posted a comment May 5, 2013

    Okay so this is just plain weird.

    • Followed your instructions and it worked fine (with Diamond).
    • Tried it also with non-stacking items (Wooden Sword) and it also worked.
    • Then tired (a new chest) with the item which wasn't working yesterday (Stone Axe) and it still worked !

    Hmmmm... what has changed between now and then I thought to myself? Answer, nothing that I can think of.

    • So I walk over to the Stone Axe "buy" chest I made yesterday, with a Stone Axe in hand - "You have 0 available".
    • Then walk to the Stone Axe "buy" chest I made today, and it works fine.

    Happy it appears to be working, but I've never heard of software which needs a day to "settle in" before :-)


    Edited May 5, 2013

To post a comment, please login or register a new account.