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.
@softvelvet
I'll fix that
Flood of errors.
I search for a possibility to set single use for all players so the item is uniq
is there a way to sell all Cactus/Any item in boss shop?
Example: Have 1 cactus sell for $3 in one slot Have 64 Sell for $220 and on the next slot Have Remaining inventory sell all on the last slot.
If you dont quite understand what im asking, Please check out /warp Market on the server pvp.Desteria.com I really need this, any help would be appreciated :)
Bump
Thanks for your help devs :/
When I set a single use, though it works on 1 of my shops, it does not work on the other. What does an item in a shop have to have in order to overlap another? One of them is single-use the other isn't but the non-single-use overlaps the other.
Would it be possible to add a command that allows you to reset a player's "used" status?
Could you add MySql Storage i used a token shop in multi server i dont want player to buy the same permission on every server
It says SingleUse 1.2 supports UUIDs.
A uuid update would be super appreciated! :)
Would it be possible to add a command that allows you to reset a player's "used" status?
Blakixx!!!!!
What the hell is wrong with this error?!!!!
It keeps saying, is it up to date?
Problem about v1.2.0 BS-SingleUse
[21:14:36] [Server thread/INFO]: [BS-SingleUse] Enabling BS-SingleUse v1.2.0 [21:14:36] [Server thread/ERROR]: Error occurred while enabling BS-SingleUse v1.2.0 (Is it up to date?) java.lang.NullPointerException at org.black_ixx.bossshop.api.BossShopAddon.onEnable(BossShopAddon.java:43) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [spigot.jar:git-Spigot-1642] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot.jar:git-Spigot-1642] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot.jar:git-Spigot-1642] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1642] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
It's been a few months now, would really appreciate an update to fix the disconnect error! ( http://hastebin.com/obadokocuq.avrasm )
Error when somebody disconnects: http://hastebin.com/odewirojeq.avrasm
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.
@chakyl
v1.2.0 converts them to UUIDs on join.
It's currently awaiting approval.
How will this be affected by UUID changes?
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...