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



    I know you have enough troubles getting this ready or waiting while they fix the RB (at least EvilSeph admitted its a Bukkit problem and not your programming ;) ) - but I actually have a feature suggestion:

    Sharing showcases.

    People can run a showcase together, and can refill them. That way people can run shops together. It imo shouldnt be too hard to have as one option when setting up a case the option to add people to the owners of the case.

    Do you think thats possible? <3
  3. Offline


    Item dupe issue has been fixed with bukkit build 933
    If you don't mind getting a dev-preview, get this bukkit build to fix the duping issue. Some other issues, like disabling explosion drops not working, have also been fixed since the last RB.
  4. Offline


  5. Offline


    I can confirm that the duplication bug and PLAYER_CHAT bug remain in cb 933. :(
    Show Spoiler

    2011-06-26 08:06:58 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
    java.util.FormatFlagsConversionMismatchException: Conversion = b, Flags =
    at java.util.Formatter$FormatSpecifier.failMismatch(Unknown Source)
    at java.util.Formatter$FormatSpecifier.checkBadFlags(Unknown Source)
    at java.util.Formatter$FormatSpecifier.checkGeneral(Unknown Source)
    at java.util.Formatter$FormatSpecifier.<init>(Unknown Source)
    at java.util.Formatter.parse(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.lang.String.format(Unknown Source)
    at de.moritzschmale.Showcase.Types.BuyAssistant.onAssistantFinish(
    at com.narrowtux.Assistant.Assistant.stop(
    at com.narrowtux.Assistant.Assistant.onPlayerChat(
    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.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(
  6. Offline


    I can confirm that the duplication bug and PLAYER_CHAT bug do not happen anymore in cb 933.

    So what now? ;)
    Jan Tojnar likes this.
  7. Hello narrowtux! May I please request a feature that can toggle the "chat hold back" function? It interecepts any chat that should be hidden like /msg, /tell, Towny- and Factions-chat.
    A toggle would be a blessing for our server setup!
    Thanks a lot!
    Keep up the great work - showcase is amazing!
  8. Offline


    Why can not I make the plugin work?
    I put a half-step and the item and nothing, why?
    Por qué no puedo hacer que el plugin?
    Puse un medio paso y el punto y nada
    por qué?
  9. Offline


    Actually, the item dupe is now gone. I can confirm I failed to overwrite my craftbukkit with version 933. :p The shops *seem* to work now, though I still get the PLAYER_CHAT error above with each purchase.
  10. Offline


    is there a chance Showcase could ever use MySQL?
  11. Hi,

    I use permissions and ALL the users can create a Showcase... Why? :eek: I don't want that! :p

    Thanks ;)
  12. Offline


    Using the "exchange", is it possible to make it so the person who buy get multiple of one item, etc 5 bread for 1 iron ingot?

    EDIT: Nevermind, I solved it :3
  13. Offline


    That would require a whole recoding of the save/load system. Also, I'd have to provide extended fallback methods and upgrade/downgrade mechanisms, so this would be very much an overkill.
    Please redownload Showcase! It's just that I uploaded the old version once again. This has been reuploaded since days now ;)
    Which version of Permissions do you use, and which nodes did you give them?
    Yep. You can set the exchange-rate to 5:1, this will give you 5 items for 1 exchange item.

    When you use basic showcase, it won't be removed from your inventory.
    Did you sneak (hold shift) while rightclicking the slab?

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


    Oops, posted this in the wrong thread!


    Since it sounds like the big issues may be under control, I would like to point out that at least myself and one other have asked that hovering items without a block not be "fixed", just in case you missed it in with all the panic going on :)

    Additionally, I keep getting console spam about saving the file. While it's nice to know, my server's not very active, so when I ssh in in the morning all I see is a stream of "[INFO] [Showcase] Autosaved", and none of the interesting activity I missed :)

    Thanks, and this plugin owns!
  15. Offline

    Mathew Alden

    Oh. Heh heh. So, I want a non-selling type showcase that DOES take the item out of your inventory... What type is that???
  16. When will u fix the glitch bug ? :(
  17. Offline


    Please repeat yourself for the first thing, I don't really understand that ;)

    For the Autosave: You can configure the autosave-interval in the config.

    What's the glitch bug?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  18. When u walk near the showcase, your inventory will be full-filled with the showcase items. without paying :(
  19. Offline


    That has been fixed with the latest Recommended Build! Update!
  20. Offline


    @narrowtux I am having this same issue. It previously worked fine, but now no matter what permissions or build (switched between 860 and 938) it doesn't allow me with the showcase.* permission to create a showcase. Interestingly enough, old showcases still remained functioning and I could still remove my own showcases, just not create new ones.

    Showcase Version 0.6.11? (This page says Showcase 6.10, but the console says 6.11) Bukkit versions 860 and 938, and console spits out this:

    2011-06-27 00:50:44 [INFO] [Showcase] version 0.6.11 has been enabled.
    2011-06-27 00:50:44 [SEVERE] Could not pass event PLUGIN_ENABLE to Showcase
    java.lang.LinkageError: loader constraint violation: loader (instance of org/bukkit/plugin/java/PluginClassLoader) previously initiated loading for a different type with name "com/nijikokun/register/payment/Method"
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at Source)
    at Source)
    at$000(Unknown Source)
    at$ Source)
    at Method)
    at Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at de.moritzschmale.Showcase.ShowcaseServerListener.onPluginEnable(
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    at net.minecraft.server.MinecraftServer.e(
    at net.minecraft.server.MinecraftServer.a(
    at net.minecraft.server.MinecraftServer.init(

    Maybe I need to update iConomy? It's been on version Eruanna forever, so haven't updated it in quite a while due to it maintaining the same version name and only updating the build it is for.
  21. Offline


    I've done a translation in french with the .csv file, but I didn't success to install it!
    How do you proceed? :)
  22. Offline


    Place the file in your Showcase folder, call it showcase-fr.csv
    Then, change the configuration for locale to
    Should work then
  23. Offline


    @narrowtux Not sure if you noticed but 928 is no longer a RB because of the item duping bug. It is now build 935! Hope this makes it easier to get around that nasty item duping
  24. Offline



    This maybe got lost inbetween all the people worrying about the item dupe glitch. Any opinion on the idea?
  25. Offline


  26. Offline


  27. Offline

    Mathew Alden

    Hi NarrowTux. I've been posting stuff about a problem that was actually my fault (sorry.) But I realize that what I was trying to do isn't possible... and so I want to make a suggestion. I want there to be a showcase type that does remove the items from your inventory (like the finite) but the items can't be sold or bought (like basic.) Would you add that, please?
  28. Offline


    So you basically want a secure way to store your items?
    Try setting an extra big price (e.g. 2013837434832934802 $) per item, no one will buy it.

    No, the cause of the issue is that you have a buggy Bukkit release.
    Please update to the latest RB (933)

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


    is there a way for people to sell items to the showcase?
  30. Hi, I use the latest version of permissions and I give ZERO nodes to my users.
    So, only admins should be able to use the showcase. no? :p
  31. Offline


    narrowtux- I have the newest bukkit. As long as stackable is disabled, I dont have an issue with being able to pickup stuff in a showcase.
Thread Status:
Not open for further replies.

Share This Page