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


    showcase spout and NarrowtuxLib make my server overload and lag - -
  3. Offline


    Whoops sorry! I totally meant iConomyChestShop! The users of the server have gotten very used to how the sign shops work with iCCS and it would be pretty spiffy if they could also use this method in Showcase. I think more of my users would switch to Showcase slabs, plus the learning curve would be practically zero. I'm not saying I dislike your question-based setup, much better than signs, BUT I have stubborn users. At any rate, great job :)
  4. Offline


    Do you have to use spout with this mod now? if i turn off spout autodownload then the plugin stops working. any idea why?
  5. Offline


    Any reason I'm still getting the GUI
  6. Offline


    could you push an update to fix this>?

    2011-08-09 00:42:20 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
        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.b(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(
  7. Offline


    I'm having the same problem as many others, I get the following error in the console
    "Could not pass event PLAYER_CHAT to NarrowtuxLib"
    I can still use basic but I'm not sure what the point of basic is..? it only lets me sell one thing and everything is set to the same price. i want to use finite but every time i do i get this error.
    Everything was working fine about two weeks ago, I had shops in my server and all was good, but I had a problem with another mod that left errors "(players name) was not updated on log in". I cleaned up unneeded plugins and the error was gone, at this time I did not try the showcase finite shop, a few days later when I went to use it I noticed it wasn't working. I thought I must have removed something the the plugin needs but I've tried a fresh bukkit install with only showcase and BOSEconomy it still doesn't work. I thought it may be a temp file or something stored else where so I copied my bukkit server to another computer with my world and plugins but still got the same error.
    I'm running out of ideas, I did notice there was a "BukkitContrib" folder in the recycle bin which isn't in my mods anymore. I know that "BukkitContrib" changed their name to "Spout", but do you think this could be the problem?

    OMG! I just noticed that your title now says 0-7-3 (I had 0-7-2) I updated my old showcase.jar file and now everything works!!!! YOUR THE BEST!!!

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


    Would be awesome if it could work with Glass blocks again. Anyway. I think I would like one that uses the UI for Spout. So when you walk in to a store, it will give you a button to view all the items you are in range of to buy and let you buy from there? Or maybe just make the store full UI so you can buy like that from a chest instead and a price list that the shop keep has set? I'm looking for ways to save space. I already had to make my store 2 levels tall.

    On a side note, can you help me with pricing? If you can spare some time to join my server sometime, I'd like some help with pricing. It seems users are buying me out on some things and whining about high prices on others yet it's super easy to make money in my server it seems. (Damn lazy people.)

    I would also like to see a way to make players able to sell items. Like they walk up to a block and type a negative number. So lets say they have one diamond and I have a block with these settings, I'll add in the new stuff I'd like to see.
    type = finite
    max items = 500
    item = diamond (dun remember the ID off the top of my head)
    item name = Diamond (if you want to customize the name the block gives)
    buy price = 300
    sell price = 225
    So you basically type these things now;
    *Right click block with diamond, settings come up asking the questions*
    What type would you like this showcase to be?
    What would be the max amount of items stored here?
    "500" (0 for infinite)
    What would you like the name of the item to be?
    "Gem" (* for default)
    What should players pay?
    How much will you buy this item for?
    "225" ('no' for no selling here, if you got a better word that would be fine too)
    How many items would you like to deposit here? You have 31.
    Showcase has been set up, finite Gems for 300 each, will buy up to a max of 500 Gems for 225. Confirm?
    Showcase complete.
    Now this would work the same way to buy and sell, just type -# to sell to the store. If the number adds greater than the store can hold, have it say "This showcase can only hold ## more items, do you wish to sell this amount instead?" -yes- (sells items, leaving extra with you) -no- (cancels shop)
    Keiler and narrowtux like this.
  9. Offline


    Great plugin, I've set up a sweet marketplace using it.
    I have one suggestion/request, would it be possible to add a standard amount to be purchased?
    e.g I could set up a shop that would sell bread for 5 coins per item but players would be forced to buy in stacks of 10.
    This could possibly be used to offer discounts for bulk buying and the like.
  10. Offline


    Showcase 0.7.2 /w Spout works only for once. Then you have to reboot!
    Spout is getting better!
  11. Offline


    i cant seem to get showcase working whenever i rightclick a halfstep wooden or stone nothing happens and the plugin is loaded
  12. Offline


    Does this plugin still automatically pull BukkitContrib when it is not already installed?
  13. Offline


    an option I would really like to see is the ability to disable placing showcases in certain worldguard regions. for example, I have people putting showcases in my monster arenas on slabs in them and I don't know who it is, if I could put a worldguard region around them and have showcase disable in there it would be great :/
    theonewithgingahair likes this.
  14. Offline


    BukkitContrib is now Spout!
    And yes Spout is autodownloaded. At the moment GUI is bit buggy on 0.7.2
  15. Offline


    Is it possible to enable showcases only in a specific region, so that people outside of it can build with slabs without opening a shop?
  16. Offline


    Your idea below seems to be very good!
    I think I will recode the whole shop thing so this will be possible. So finite, infinite and sell will be merged into one.
    Ofc, I'll provide auto convert to the new system.
    Keiler likes this.
  17. Would this still handle permissions for infinite? I wouldn't want just anyone being able to create infinite diamond shops.
    Also, do you have an ETA for WorldGuard region flag for showcase? I know your busy with spout so just wondering if you have set a milestone anywhere....
  18. Offline


  19. Offline


    I created some showcases, worldgaurded it- but no one (including me) can buy from the showcase. My other plugins are


    Is there a conflict?

    Heres the log-
  20. Offline


    As I tried to ask before, none of my users can buy from the showcases expect me with my '*' rights in permissions 3.x and OP name in op.txt
    I do not get any errors in the server console or any messages at all, nothing just happens when they click the slabs for some reason... Anyone have a solution to this?

    Permissions my users has is:
    - 'showcase.basic'
    - 'showcase.finite'
    - ''
    - ''
    - ''
  21. Offline


    same issue for me and I'm not even using permissions plugin. Showcases within worldguarded zones don't work.. they never ask for an amount.
  22. Offline


    Ok, yeah I can confirm, It works for users outside worldguard zones. But then I just had to try a TNT on it, the showcase got destroyed and the sword I had for sale is jumping down up and down in air instead...
  23. Offline


    It started working for me :)
  24. Offline


    Well hang on. xP I had more ideas just recently.

    A spout only version shop I thought of. It would be completely UI only as it would be horrible to see in a chat. This would be where you fill a locked chest with at least 1 of each item. The script would store the value, the chest would only hold the item to show what's in it's slot. A player punches the chest to open the UI and it will show the items as if in a chest fashion but when you hover over the items, it will show the name, price, sell price and how many are left. Or maybe the UI would display it in a grid fashion with this information.

    It would be nice to be able to compress a shop to a smaller area, I had to make my shop 2 stories tall to fit everything I want and it's kind of a mess.

    Spout is so awesome, I hope it like becomes a part of the actual game. Like Notch actually takes it in and the dev team for it. :p It would improve the game 5 times. I gotta eventually go report some issues I have/had with spout and found workarounds to these issues already. Blah, I prefer talking to devs in personal messages as it's easier for me to filter through and everything.
  25. Offline


  26. Offline


    Could you please release a Spout-Free version of Showcase ?
  27. Offline


    Then why wont the text appear for my players, yet it does for me? I understand I get all permissions, but if there are no permissions for it, how does that impact it?
  28. Offline


    I have this set to basic because I can't use the shop still.
  29. Offline


    I second this. Spout conflicts with the mods on my server.
  30. Offline


    we have the following problems
    the text on the gui over flows the window
    there is no text on the second window (after you choose infinite, finite etc)
    set a price on the second window and it said successful but no one could buy anything!

    Glad to see the gui (long live spout!) but perhaps remove it till its fixed?
  31. Offline


    Can you make this works without Spout? Because it conflicts with mods on my server.
    Or someone know an other plugin like this?
Thread Status:
Not open for further replies.

Share This Page