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 MCer202 MCer202 Jun 23, 2015 at 03:04 UTC - 0 likes

    Bump

  • Avatar of MCer202 MCer202 Jun 22, 2015 at 17:18 UTC - 0 likes

    Thanks for your help devs :/

  • Avatar of MCer202 MCer202 Jun 21, 2015 at 21:13 UTC - 0 likes

    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.

  • Avatar of TNGfire TNGfire Jun 18, 2015 at 19:57 UTC - 0 likes

    Would it be possible to add a command that allows you to reset a player's "used" status?

  • Avatar of mcsorley mcsorley May 21, 2015 at 21:30 UTC - 0 likes

    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

  • Avatar of Cortesian Cortesian Feb 19, 2015 at 21:01 UTC - 0 likes

    It says SingleUse 1.2 supports UUIDs.

  • Avatar of monstercat101 monstercat101 Feb 18, 2015 at 09:51 UTC - 0 likes

    A uuid update would be super appreciated! :)

  • Avatar of xXBondc007Xx xXBondc007Xx Jan 26, 2015 at 18:53 UTC - 1 like

    Would it be possible to add a command that allows you to reset a player's "used" status?

  • Avatar of KentDMC KentDMC Nov 13, 2014 at 07:12 UTC - 0 likes

    Blakixx!!!!!

    What the hell is wrong with this error?!!!!

    It keeps saying, is it up to date?

  • Avatar of KentDMC KentDMC Nov 03, 2014 at 09:40 UTC - 0 likes

    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)

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
2,008
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