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 Blackixx Blackixx Apr 17, 2016 at 09:39 UTC - 0 likes

    @xDizasterCYx: Go

    you are using the old BS-SingleUse version

    @softvelvet: Go

    Awesome :)

    BossShop

  • Avatar of softvelvet softvelvet Apr 16, 2016 at 03:30 UTC - 0 likes

    @Blackixx: Go

    Woo! Thanks! Works great on my 1.9.2 spigot server. :D

    Last edited Apr 16, 2016 by softvelvet
  • Avatar of xDizasterCYx xDizasterCYx Apr 15, 2016 at 17:02 UTC - 0 likes

    Found this on 1.9.2: http://pastebin.com/ZNGskevw

    Currently Managing XeraBending! | Connect with -> XeraBending.com | Website -> http://xerabending.enjin.com

    YouTube Channel

  • Avatar of Blackixx Blackixx Apr 15, 2016 at 08:49 UTC - 0 likes

    @softvelvet: Go

    I'll fix that

  • Avatar of softvelvet softvelvet Apr 15, 2016 at 01:15 UTC - 0 likes

    Flood of errors.

    [18:13:47 INFO]: [BS-SingleUse] Enabling BS-SingleUse v1.2.0
    [18:13:47 INFO]: [BossShop] Enabling Addon BS-SingleUse
    [18:13:47 INFO]: [BS-SingleUse] Loaded 3 SingleUse Items
    [18:13:47 ERROR]: Error occurred while enabling BS-SingleUse v1.2.0 (Is it up to
     date?)
    java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()[Lorg/bukkit/en
    tity/Player;
            at org.black_ixx.bossshop.addon.singleuse.BSListener.enable(BSListener.j
    ava:162) ~[?:?]
            at org.black_ixx.bossshop.addon.singleuse.SingleUse.enableAddon(SingleUs
    e.java:28) ~[?:?]
            at org.black_ixx.bossshop.api.BossShopAddon.onEnable(BossShopAddon.java:
    47) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[s
    pigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:340) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:405) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.jav
    a:361) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.
    java:321) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at net.minecraft.server.v1_9_R1.MinecraftServer.t(MinecraftServer.java:4
    11) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at net.minecraft.server.v1_9_R1.MinecraftServer.l(MinecraftServer.java:3
    76) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at net.minecraft.server.v1_9_R1.MinecraftServer.a(MinecraftServer.java:3
    31) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.jav
    a:269) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java
    :527) [spigot-1.9.jar:git-Spigot-ccb6016-f92e01b]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
    [18:13:47 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [18:13:48 INFO]: Done (9.949s)! For help, type "help" or "?"
    
  • Avatar of Androkai Androkai Dec 13, 2015 at 15:38 UTC - 0 likes

    I search for a possibility to set single use for all players so the item is uniq

    BigCraft.net - Minecraft in familiärer Atmosphäre genießen

  • Avatar of SilverBear00 SilverBear00 Aug 04, 2015 at 01:15 UTC - 0 likes

    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 :)

  • 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.

Facts

Date created
Jan 05, 2014
Category
Last update
Jun 09, 2016
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
BS-SingleUse
Reverse relationships
1
Downloads
3,297
Recent files
  • 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
  • R: v1.0.0 for CB 1.7.2-R0.2 Jan 05, 2014

Authors

Relationships

Required dependency
BossShop