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.
Add Mysql Plz
I have 2 servers and want them to have the same information.
@Blackixx
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
@Blackixx
Ok, thank! Good luck in your jobs :]
@Kixot14
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.
@Blackixx
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!
@Kixot14
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.
@Blackixx
Can you give answer on my tickets ?? http://dev.bukkit.org/bukkit-plugins/bossshop/tickets/307-transactions-delay/
http://dev.bukkit.org/bukkit-plugins/bossshop/tickets/306-boss-shop-economy-account-for-sell-transactions/
@Kixot14
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.
@Blackixx
why u just not add BS-singleUse to BS core ??
@Kixot14
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.
@Blackixx
Looks like works not fine :[
http://pastebin.com/tL3NAdBA
Spigot build #904
@Blackixx
and can i set this usages globally, per all players in server ??
@Blackixx
But i don't understand, how can i configurable amount of time, after which i can again use shop item ??
SingleUse: <x> - it's how many times i can use this items, but what shuld i add to config, if i want for example have 30 usages and all cooldown 10 sec. If for example player use item 5 times, after 50 sec this 5 items is cooldowning again
@Kixot14
Yep
@Blackixx
Works fine with 1.10 ??
@Kixot14
This Addon allows to limit the use of every type of ShopItem including every reward type.
This can limit only buy action, or sell, permissions and other action to ??
@xDizasterCYx
you are using the old BS-SingleUse version
@softvelvet
Awesome :)
@Blackixx
Woo! Thanks! Works great on my 1.9.2 spigot server. :D
Found this on 1.9.2: http://pastebin.com/ZNGskevw