Inactive [MECH/ECON] Showcase v0.8.1 - Create visual shops by spawning drops on slabs [1.1-R5]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, May 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    Version 0.8.1​
    As supposed in this thread, I created a plugin that lets you put items into glass blocks (now steps, it's notchs fault) to showcase them. This is useable for shops, to show what's for sale there, or to make clear what type of farm you built.
    • Showcase all items in a half-step Block
    • Block protection (you can't break the step block and the block below it to prevent that the item falls down)
    • Multiworld
    • Items in a showcase can't be picked up
    • Only the player who created a showcase can remove it
    • Prevents despawning of items (Normally, drops disappear after 5 minutes)
    • You can setup finite and infinite shops
    • DropChest support (disables DropChest for absorbing the showcased items)
    • WorldGuard support (works out of the box)
    • Localisation
    • Can show custom item names through BukkitContrib
    • Economy support:
      • iConomy 4 & 5
      • BOSEconomy
      • Essentials Economy
    Download & Source-Code
    Download Showcase.jar
    Browse Source-Code on Github
    You will need an economy system if you want shops.
    This will install NarrowtuxLib automatically!
    Please donate, if you really like this ;)
    Show Videos (open)

    When you have got issues, please read this:
    Issue Report (open)

    1. Please, first check if you have got the most recent version of Showcase and the most recent recommended build of Bukkit.
    2. Then, check if the bug is already listed in the "Known Bugs" section.
    3. After doing step 1+2, report the bug with at least this information:
      • Version of Showcase
      • Version of Bukkit
      • If possible, a step-by-step explanation of the bug
      • If possible, console errors
      • When you think that this has got to do with another plugin, please list all your plugins like this:
        • PluginA, PluginB, PluginC ...
    This will be incredible helpful for me to fix it faster.

    You don't actually have to retype everything I typed here, but if you'd take it as a guideline which content you should include in your issue report, it's more helpful ;)

    Please, don't come here just to say "This doesn't work.". This says nothing.

    Adding a showcase
    1. Start sneaking!
    2. Right-click a half-step block with the item in your hand you want to showcase
    3. An assistant will ask you which type of Showcase you want to add. Type the text before the colon :))
    4. Depending on the type you chose, the assistant will ask some extra questions, follow the assistant to finish showcase creation.
    Removing a showcase

    1. Sneak
    2. Right-click on a showcase. If this was a finite showcase or an exchange showcase, you will get your items back.

    ActionPermission-NodeWithout Permissions
    Create a basic Showcase.showcase.basicPlayer
    Create a infinite shop Showcase.showcase.infiniteOperator
    Create a finite shop Showcase.showcase.finitePlayer
    Create an exchange Showcase.showcase.exchangePlayer
    Buy from a finite shop
    Buy from an infinite shop
    Removing a showcase of other players.showcase.adminOperator

    The column "Without Permissions" explains which user-type can use this permission when no Permissions system is installed.
    What are shop showcases?
    A shop showcase can be used to sell items to your players. There are 2 types of shops now:
    1. Infinite shop. This one has an infinite amount of items. The money that the players give to buy an item will go to nirvana
    2. Finite shop. This one has that number of items which the owner has set up. The owner will get the money from which the items were bought.
    How can a Player buy items from a shop showcase?

    1. Click on the Showcase. The price per item and the available amount will be displayed.
    2. Type in the number of items you want and hit enter. A message will show you the success of the checkout.
      • Type 0 to abort checkout
    How can you refill a finite shop showcase?

    1. Click on it
    2. Type in the amount of items to refill. Negative values will remove that amount from the showcase.
    3. Walk away or type 0.

    The showcase command handles manual saving and loading
    /showcase save
    Saves the items to showcases.csv
    /showcase load
    Loads the configuration, translation and items without saving (Use with caution)
    /showcase reload
    Saves and loads everything after that. Useful when some items aren't in place and you want to quick-fix that.

    The configuration file is auto-generated and is called showcase.cfg
    Here are the configuration possibilities:
    • basicmode : this decides if the plugin should operate like in version 0.2 or before (Just the basics)
    • priceforbasic : this adds a price to the basic showcases
    • priceforfinite : this adds a price to the finite showcases
    • priceforexchange: this adds a price to the exchange showcases
    • removewhenempty: when set to true, a finite showcase will be removed when it's amount hits 0
    • showcaseprotection : turn this to false to be able to remove showcases from other players (griefers) (you should now use WorldGuard instead of this one ;) )
    • locale: standard is en-US. The german translation which is included in the jar-file is de-DE. If you type that in, it will copy the german file from the jar to your plugins folder
      • You can change the translation very easily by editing the existing locale.
      • Colors are supported, just add something like [GREEN] or [DARK_RED] to the text.
      • You can add newlines with \n
    • autosaveinterval: the time between two auto-saves in seconds. Standard is 60 secs. Use -1 to disable autosave.

    Currently available translations:

    Version 0.8.1
    See the whole changelog

    • Spawn multiple items in the same glass block (up to 4, would be aligned nicely)
    • Verify that there is no free space below the glass block before adding a showcase
    • Maybe let the showcase glow when you placed torches, glowstone or lava in it
    • Custom messages (aka localisation)
    • Sell-Showcases
    • DropChest support (so the items inside the glass won't be absorbed by a Dropchest)
    • Limit the amount of Showcases per player
    • Add a price that the creator of a showcase has to pay (there would be an independent price for each basic, infinite and finite showcases)
    • Linking infinite shops to banks (money spent for items goes there)
    • Rent a showcase for money/day
    • Autosave with configureable interval
    • Commands for save, load and reload
    Crossed items are already done!

    Known bugs
    • This plugin conflicts with some chat-altering plugins (i.e. bColoredChat) this is because the authors don't know how to correctly set up the priority of events.
    • Normal players (the ones that aren't operators) can't use showcases that are in the spawn-protection area. Either disable the spawn protection or place the showcases to an other location (Disable spawnprotection by setting "spawn-protection-size=0" in the file)
    • With the latest dev preview (not the recommended build), you're able to make slabs to double steps. I've got to investigate until they propose it as RB.
    • ATM, Showcases won't save enchantments. So please just don't try to sell yours because that wouldn't work either.
  2. Offline


    whn i type (basic) it just says it wont work. Nothing happens in the console it just says that.

    the attached file is a screen shot :D

    Attached Files:

  3. Offline


    You don't type "(basic)", just type "basic"

    Also, would it be possible for you to make it where when the person buys, it takes items out of their inventory? I don't use any economy plugins that have money.
    What I need is when they use a shop, it takes X amount of an item, in this case, 10 gold bars.
    I would really appreciate it if you could do this somehow.

    Quote this post if you reply, please.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  4. Offline


    When I sneak, right click the glass with an item, and type basic nothing happens :confused:?
  5. Offline


    this is awesome, one thing tho, can you make it so admins can remove other players showcases? i have a glass city in towny and people can protect blocks using it even from OP and permissions (*)
  6. Offline


    Do you have the permission showcase.basic?
  7. Offline


    Well, it isn't hard to add int cariables to enable only whole numbers. He can also add a certain gap between two bids, I mean that you will need to offer at lease the highest offer + some more money, this way the auctions will be fair and people will not do it just to make each other poor.
  8. Offline


    I can only seem to have 5 showcase items out at once, if I put any more another disappears ;-; please help

    if I try and add an item back to a missing showcase, it says item removed and I get the invisible item back, when I put a new one down, another showcase goes invisible
  9. Offline


    this is what i was looking for too, i don't want to install economy (or similar) and i want to be able to run an item shop
  10. Offline


    I was wishing a plugin like this existed like a month ago, great work! I'll be testing it out soon!
  11. Offline


    Getting a pretty major JRE fatal crashes, resulting from a plugin doing something crazy with Chunk.getBlock - I figure it's either NoMore or Showcase, since it's only started doing it since I put the the two of them in.

    Here's the error readout:

    <cross-posted to the NoMore thread>
  12. Offline

    maria myren

    Hey, I ADORE this plugin, awsome work man! Thing is this for me: The items in the showcase goes invisible after a while, i assume they dont respawn correctly? I dont know, but 1. if i go close to the display I "loot" the item, it doesnt actually end up in my inventory but it disapears from the case, and even if I dont go close, they will all go invisible after a while. This is ONLY with Finite mode, basic and Infinite works fine.

    Also, a suggestion, would be nice to be able to buy stacks of 64. When i want to buy for example wood, instead of clicking 320 times, it would be nice to be able to buy stacks of 64.

    Also: When leftclicking you get Price of item and quantity in stock. Could we also get name?
    Wood 15$ 44 in stock etc? New players may find it difficult seeing what everything is, and that would mean puitting up signs for each case.

    Thanks for an awsome mod!
  13. Offline


    Ahh, the dupe bug is back. Now I have to postpone the Merchant class update again :S. Good luck fixing it though, it looks difficult.
  14. Offline


    Here infinite doesn't work fine > unfortunately it behaves like the others (basic/finite) and disappears
  15. Offline


    Buying items will be refined, so the Shop asks you "How many items of wood do you want to buy? (10 in stock, 5 $ per item)"
    And you simply enter the amount, so it will be possible to buy a whole stack at once.
    Also, it will display the correct currency that you set up there (if you don't like dollars).
    I will get into the dupe bug today, think I'll have to re-implement some methods so they are more reliable.

    Not sure if this is caused by Showcase or NoMore, because it just gives you the name of the most recent method called, no stack-trace. Do you think you can find a stack-trace (Unhandled XXException in ...) from server.log?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  16. Offline


    Good question !
    If we need only showcase and not shop (i dislike economy plugins) how we can disable other features ?
    Can you add old version with only showcase to download ? :)
  17. Offline


    You can only give you the permission showcase.basic and the plugin will automatically see this and creates a normal showcase when you sneak-right-click on a glass block.
  18. Offline


    Can't find anything like that, unfortunately. The server window just closes, it dumps the java error log and server.log stops at the point of the crash.
  19. Offline


    And if i don't have permission plugin ? :p
    just ops can make infinite showcase ? player can juste make basic ?
  20. Offline


    release v0.3.9
    • Finally fixed duped items (they will be removed at spawn-time and when removing it) and missing items when reloading chunks.

    players can make basic and finite, just ops can make infinite

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  21. Offline


    I found the Problem, this Plugin Conflicts with WordReplace, i deaktivatet it, now it works!
  22. Offline


    Release v0.4
    • Shopping made easier (see screenshot)
    • Owners of finite showcases now get notified if someone buys from their showcase
    • users with permission showcase.admin (or ops) can now remove showcases of other players
    • Prices now show the correct currency
    Here's the screenshot:
    (Finite showcases also display the number of items in stock.)
  23. Offline


    epic! just epic!!
  24. Offline


    As i first read your thread, i thought, wow! a new plugin from the author of dropchest!
    Then i read it and the wow became wooooooooow :D
    And now i tryed it:
    The progress works fine but when it comes to the time to display the showcase(after entering all parametes)
    this two errors occur:
    2011-05-19 16:46:15 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.clone()Lorg/bukkit/inventory/ItemStack;
        at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerInteract(
        at org.bukkit.plugin.RegisteredListener.callEvent(
        at org.bukkit.plugin.SimplePluginManager.callEvent(
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(
        at net.minecraft.server.ItemInWorldManager.interact(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(
    2011-05-19 16:46:21 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
        at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerChat(
        at org.bukkit.plugin.RegisteredListener.callEvent(
        at org.bukkit.plugin.SimplePluginManager.callEvent(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.Packet3Chat.a(
        at net.minecraft.server.NetworkManager.a(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(
    Am i doing something wrong?
  25. Offline


    Bukkit version too old -.-
  26. Offline


    Ok, thanks
    your 0.1 version make juste showcase ? no shop ? is'nt it ?
    If i'm right where i can download this ? :)
  27. Offline


    Release v0.4.1
    • Fixed a serious bug where players could cheat money and items (I'm not going to tell how)

    I'm never keeping old versions, sorry. You can still build that from my github repo or wait until I provide a config for this.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  28. Offline


    When buying multiple unstackable items they stack. Not sure if its fixable or not.

    Also I can buy items even if I don't have the inventory space. Need a check for that.
  29. Offline


    Thanks, I added this to the first post.
  30. Offline


    When i try to enter price it doenst work.. if i want a basic case i dont work.. this mod dont work?
  31. Offline


    Oh, thank you for reporting it, will fix that.

    Good news! The author of the GlassPlugin has stated that he will fix the dupe issue that was caused by this plugin!

    I'll fix that in a minute ;)

    Release v0.4.2
    • Fixed bug that prevented using the chat-assistants when having chat-altering plugins like WordReplace in use.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
Thread Status:
Not open for further replies.

Share This Page