BS-SingleUse

SingleUse prevents players from buying specific items multiple times

SingleUse works with BossShop, the most player-friendly GUIShop Plugin!

Features

  • Allows to limit the amount of uses of BossShop Items
  • Configurable message (Default: '&cYou already bought this &6%limit%&c/&6%limit% &ctimes!')
  • Lightweight

Commands

  • None

Permissions

  • None

Setup

All you need is the plugin BossShop and shops containing items.

You want to set an Item in a shop to a "Single-Use" Item?

Just add a "SingleUse: true" line to your item!

First:

GodApple:
    RewardType: item
    PriceType: money
    Price: 10000
    Reward:
    - - type:GOLDEN_APPLE
      - amount:1
      - durability:1
    MenuItem:
    - type:GOLDEN_APPLE
    - amount:1
    - name:&9%itemname%
    - 'lore:&cPrice: 10000 Money'
    - durability:1
    Message: '&eYou bought 1 %itemname%! Money left: &c%left%'
    InventoryLocation: 9
    ExtraPermission: ''

Then

  GodApple:
    SingleUse: 1
    RewardType: item
    PriceType: money
    Price: 10000
    Reward:
    - - type:GOLDEN_APPLE
      - amount:1
      - durability:1
    MenuItem:
    - type:GOLDEN_APPLE
    - amount:1
    - name:&9%itemname%
    - 'lore:&cPrice: 10000 Money#&4Only available once!!!'
    - durability:1
    Message: '&eYou bought 1 %itemname%! Money left: &c%left%'
    InventoryLocation: 9
    ExtraPermission: ''

Now your players will only be able to buy the item "GodApple" once.

GitHub Source

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Daconway Daconway Oct 20, 2014 at 02:28 UTC - 0 likes

    It's been a few months now, would really appreciate an update to fix the disconnect error! ( http://hastebin.com/obadokocuq.avrasm )

    minevast

  • Avatar of Daconway Daconway Aug 26, 2014 at 00:36 UTC - 0 likes

    Error when somebody disconnects: http://hastebin.com/odewirojeq.avrasm

    Last edited Sep 13, 2014 by Daconway
  • Avatar of namke123 namke123 Jul 19, 2014 at 18:43 UTC - 0 likes

    Am I doing anything wrong if the item disapears from the shop when the players try to buy it, even if they don't have enought money to actually buy the item.

  • Avatar of confuserr confuserr Jul 12, 2014 at 17:46 UTC - 0 likes

    @chakyl: Go

    v1.2.0 converts them to UUIDs on join.

    It's currently awaiting approval.

  • Avatar of chakyl chakyl Apr 08, 2014 at 00:33 UTC - 0 likes

    How will this be affected by UUID changes?

    "omg chakyl that signature makes me want to shove rabid badgers up your various orifices." -1337ingDisorder

  • Avatar of diannetea diannetea Feb 25, 2014 at 01:07 UTC - 0 likes

    So, uh, where does it store the fact that I bought something? I was testing some of the single use items but now I can't figure out how to get them to come back so I can adjust things...

  • Avatar of Jacold Jacold Feb 17, 2014 at 17:29 UTC - 0 likes

    @Blackixx: Go

    Ok, and next question. Is there any way to configure SingleUse per player or global?

    http://www.botsped.pl/images/icons/polish_flag.gif I'm weally sowwy for my poor English.

  • Avatar of Blackixx Blackixx Feb 17, 2014 at 16:38 UTC - 0 likes

    @Jacold: Go

    exactly

    Inactive due to time issues...

    ManaWar (Click Me!)

  • Avatar of Jacold Jacold Feb 17, 2014 at 16:07 UTC - 0 likes

    Blackixx - I have a question.

    If I set SingleUse more than 1 it will be sold defined times?
    Example:
    StackOfClay:
    SingleUse: 6

    /
    \ Player can only buy 6 stacks and will retrieve message that clay is out of stock?

  • Avatar of qiuMC qiuMC Feb 16, 2014 at 17:33 UTC - 0 likes

    Request update 1.6.4 version, thanks!

    You are my little small apples! How can never love you too much!

Facts

Date created
Jan 05, 2014
Category
Last update
Jul 12, 2014
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
BS-SingleUse
Downloads
1,043
Recent files
  • R: v1.2.0 for CB 1.7.9-R0.1 Jul 12, 2014
  • R: v1.1.0 for CB 1.7.2-R0.2 Jan 08, 2014
  • R: v1.0.0 for CB 1.7.2-R0.2 Jan 05, 2014

Authors

Relationships

Required dependency
BossShop