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 Kixot14 Kixot14 Jul 29, 2016 at 08:02 UTC - 0 likes

    @Blackixx: Go

    Tell me one more please, did in Pro version i able to set 2 diferent and paralel actions per one item??

    For example: Bought 1 stone: given 10 money and 5 exp.

    Or another example: Sold 1 stone: taken 5 money + given 2 exp

    Last edited Jul 29, 2016 by Kixot14
  • Avatar of Kixot14 Kixot14 Jul 28, 2016 at 21:46 UTC - 0 likes

    @Blackixx: Go

    Ok, thank! Good luck in your jobs :]

    Last edited Jul 28, 2016 by Kixot14
  • Avatar of Blackixx Blackixx Jul 28, 2016 at 21:13 UTC - 1 like

    @Kixot14: Go

    I'm going to start studying this year and have to do some physical work (production or construction) in order to be able to pay my rent. Besides I'll be away from 30.07 - 08.08. That's why I can not make promises yet. I will definitely check your tickets out as soon as I have some free time. One more thing is that I have released one premium plugin (BossShopPro) at spigot and as people pay for it I kinda feel responsible to invest more time into that plugin than in others.

    BossShop

  • Avatar of Kixot14 Kixot14 Jul 28, 2016 at 18:16 UTC - 0 likes

    @Blackixx: Go

    PFFFFF! Other work...

    Why all cool plugin maker busy with some "other work" ?? You shuld be busy with that work that you love and know how to do!

  • Avatar of Blackixx Blackixx Jul 28, 2016 at 12:49 UTC - 0 likes

    @Kixot14: Go

    I'll answer new BossShop tickets as soon as I have time to think about new features. Currently I'm quite busy with lots of other work.

  • Avatar of Blackixx Blackixx Jul 28, 2016 at 09:36 UTC - 0 likes

    @Kixot14: Go

    I think it is way more clear and well structured when special features like the one that BS-SingleUse offers are separated from the main project. Mainly because of the additional storage file that BS-SingleUse introduces which would be unnecessary for people that do not work with it.

  • Avatar of Kixot14 Kixot14 Jul 28, 2016 at 09:04 UTC - 0 likes

    @Blackixx: Go

    why u just not add BS-singleUse to BS core ??

  • Avatar of Blackixx Blackixx Jul 28, 2016 at 08:35 UTC - 0 likes

    @Kixot14: Go

    Time cooldowns are not possible yet (Already planned). Currently all you can do is limit the amount of uses. Data is saved locally in a storage file inside "plugins/BS-SingleUse/" and due to that is restricted to one server.

    About your issue: I do not get that error when testing with my v1.10 server, however I found the reason that causes it and am currently fixing it.

  • Avatar of Kixot14 Kixot14 Jul 28, 2016 at 08:23 UTC - 0 likes

    @Blackixx: Go

    Looks like works not fine :[

    http://pastebin.com/tL3NAdBA

    Spigot build #904

Facts

Date created
Jan 05, 2014
Category
Last update
Jul 28, 2016
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
BS-SingleUse
Reverse relationships
1
Downloads
3,649
Recent files
  • R: v1.2.3 for 1.10 Jul 28, 2016
  • R: v1.2.2 for 1.9 Jun 09, 2016
  • R: v1.2.1 for 1.9 Apr 15, 2016
  • 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

Authors

Relationships

Required dependency
BossShop