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


    Well, that's not a very good reason... That's just laziness.

    If everything is already set up, why do you need this plugin? I don't think the author should make an entire set of features because you can't take the time to do a bit of work on your server...
  3. Offline


    Im not asking him to do anything. I do have the time to do a bit or work on my server, but for most things, the signs work just fine. I was just asking if I can use this just to put items in them. Gosh, I wasn't asking for a fight, just a simple question. Call it laziness or whatever you like, but Im staying with the signs.
  4. Offline


    You have always the opportunity to chose basic instead of one of the shop showcases.
  5. Offline


    Alright, thanks
  6. Offline


    I was stupid and misread the question. I had no intention of starting a fight in the first place and I apologize.
  7. Offline


    that is what the "basic" mode is :) so in short the answer is yes, and it already works

    sorry just realised this was already answered by OP but ill leave this for clarity :) and for those who only skim read threads!
  8. Offline


    is it possible for it to be glass again, cause the half step doesn't show the item well
  9. Offline


    it will sit on top of the half step once you go to 1.6+
    no it is no longer possible to have items in glass blocks as notch has made it so glass blocks will no longer allow items though/in them.
  10. Offline

    Daniel Few


    Sorry for my last question, i didn't see this layout:

    Please, first check if you have got the most recent version of Showcase and the most recent recommended build of Bukkit.
    Yes i have :

    Then, check if the bug is already listed in the "Known Bugs" section.
    No its not:

    After doing step 1+2, report the bug with at least this information:

    Version of Showcase 0-5-11

    Version of Bukkit - 803

    If possible, a step-by-step explanation of the bug
    Sometimes, when the server reloads/restarts, all my items in the glass become invisible, they are still there acordng to showcase, bt u cant see them.

    If possible, console errors

    Hope that helps
  11. Offline


    I really like the idea of your plugin, but i have one feature request:

    I would like pay with Items of my Inventory like coal,iron oder gold. This would be great.
    Although, I'm not the only one who misses this feature:

    By Veka

    Thx in advance.
  12. Offline


    showcase 05.11, bukkit 803, no console errors (815 as stated as recommended for this plugin is not a recommended build at all so a i will not use it)

    half-steps do not disappear and therefor items are not displayed as it should be
    shops work but... this feature i do not need for my server...

    Q: is it the bukkit build that produces that error
  13. Offline


    No it's the conflict between minecraft 1.5 and 1.6
    1.5 had a bug where items could be spawned inside glass blocks and also half-steps
    This bug was used by Showcase until notch fixed it in 1.6
    I changed the block type to half steps because this worked in 1.6, but I wasn't aware that in 1.5 the items wouldn't be displayed on top of the step but inside it.
  14. Offline


    I really love this plugin, but I can't help but notice you can't tell when your shop is empty by clicking anymore. It doesn't say how many you have stored so you never know when to restock. It used to do that before you updated it and it was extremely useful. Could you possibly add this again?
  15. Offline


    Will come when I add an assistant for that (like shop-setup or buying) :)
  16. Offline


    Showcase works fine in recommended c818 (on my experience)
    Please push the assistant, thats very important! :)
  17. Offline


    Current development state:
    • Implemented WorldGuard support
    Next is the showcase-refill assistant where you can see how many items still are in the showcase and you can add and even remove items by typing the amount into chat (for example: 5 for adding 5 more glass, -10 to remove 10 of the torches when you need them)

    NOTE: This update isn't released yet ;)

    Release v0.5.12
    • WorldGuard support
    • Recoded the Refill Assistant.

    New Icon (XenForo is buggy so I've got to post it here first :D)
    View attachment 3661

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


    ah i understand, thx for informating..

    a version for 1.5 of your plugin would be great cause i think a lot of ppl will stay on 1.5 for a while...
  19. Offline


    are you able to use any thing to buy it with, because in our server our economy right now is slimeballs or slimeorbs. and the way the video shows it is with $. or like the adventure craft where you ues gold to buy stuff
  20. Offline


    I plan to add a Showcase where you can do exchanges just like in adventure craft.
  21. Offline


  22. Offline


    getting a bunch of these in my log:
    2011-06-02 06:00:21 [INFO] Wrong location! net.minecraft.server.EntityItem@24c
    2011-06-02 06:00:21 [INFO] -416.5,-260.5(-27,-17) vs -26,-17
    2011-06-02 06:00:21 [SEVERE] java.lang.Exception: Stack trace
    2011-06-02 06:00:21 [SEVERE]     at java.lang.Thread.dumpStack(Unknown Source)
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.Chunk.a(
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.ChunkLoader.a(SourceFile:181)
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.ChunkRegionLoader.a(SourceFile:42)
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.ChunkProviderServer.loadChunk(
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.ChunkProviderServer.getChunkAt(
    2011-06-02 06:00:21 [SEVERE]     at org.bukkit.craftbukkit.CraftWorld.getChunkAt(
    2011-06-02 06:00:21 [SEVERE]     at org.bukkit.craftbukkit.CraftWorld.getBlockAt(
    2011-06-02 06:00:21 [SEVERE]     at org.bukkit.craftbukkit.CraftWorld.getBlockAt(
    2011-06-02 06:00:21 [SEVERE]     at org.bukkit.Location.getBlock(
    2011-06-02 06:00:21 [SEVERE]     at de.moritzschmale.Showcase.ShowcaseItem.<init>(
    2011-06-02 06:00:21 [SEVERE]     at de.moritzschmale.Showcase.ShowcaseMain.load(
    2011-06-02 06:00:21 [SEVERE]     at de.moritzschmale.Showcase.ShowcaseMain.onEnable(
    2011-06-02 06:00:21 [SEVERE]     at
    2011-06-02 06:00:21 [SEVERE]     at
    2011-06-02 06:00:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    2011-06-02 06:00:21 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    2011-06-02 06:00:21 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.MinecraftServer.e(
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.MinecraftServer.a(
    2011-06-02 06:00:21 [SEVERE]     at net.minecraft.server.MinecraftServer.init(
    2011-06-02 06:00:21 [SEVERE]     at
    2011-06-02 06:00:21 [SEVERE]     at
  23. Offline


    As long as the world isn't corrupted, its nothing to worry about (just that it spams the console).
  24. Offline


    So no more putting items in glass to showcase them? D:
  25. Offline


    Yell at notch :D
  26. Offline


    You should have a configurable setting that allows you to chose between glass and half-steps...

    I also noticed something (updated today).
    I can't place any items in the Showcase. They disappear from my hand, I get a message saying that I need to be holding something, then spawn more!!!

    Nevermind. I found that CButD Didn't download the right file...
  27. Offline


    Glass does not work anymore. Blame notch.

    First of all: this plugin is amazing! Thank you so much for the great work!

    Remove the "This is not a safe place for your item" message/block.
    "enable-via-command" in config. i.e. /showcase to enable showcase creation.
    Wood/stone stair support.
    Enable a group to get selected items for free?
    Making it able to set showcases like this: (you get the idea) View attachment 3698 Once again, thank you for your great work!

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


    ^^ same as powback ..

    @narrowtux make please something like "enable-via-command" in config. i.e. /showcase to enable showcase creation. (as above)

    My players yell on me, because they place half-step blocks with sneaking when building something.. :D [cake]

    Thank you for awesome stuff anyway ![diamond]
    MiHo likes this.
  29. Offline


    CB 819 and Showcase 0.5.12

    Removing Showcase.jar made the errors go away.

    Show Spoiler
    2011-06-03 08:43:05 [SEVERE] 	at org.bukkit.craftbukkit.CraftWorld.getChunkAt(
    2011-06-03 08:43:05 [SEVERE] 	at org.bukkit.craftbukkit.CraftWorld.getBlockAt(
    2011-06-03 08:43:05 [SEVERE] 	at org.bukkit.craftbukkit.CraftWorld.getBlockAt(
    2011-06-03 08:43:05 [SEVERE] 	at org.bukkit.Location.getBlock(
    2011-06-03 08:43:05 [SEVERE] 	at de.moritzschmale.Showcase.ShowcaseItem.<init>(
    2011-06-03 08:43:05 [SEVERE] 	at de.moritzschmale.Showcase.ShowcaseMain.load(
    2011-06-03 08:43:05 [SEVERE] 	at de.moritzschmale.Showcase.ShowcaseMain.onEnable(
    2011-06-03 08:43:05 [SEVERE] 	at
    2011-06-03 08:43:05 [SEVERE] 	at
    2011-06-03 08:43:05 [SEVERE] 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    2011-06-03 08:43:05 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    2011-06-03 08:43:05 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    2011-06-03 08:43:05 [SEVERE] 	at net.minecraft.server.MinecraftServer.e(
    2011-06-03 08:43:05 [SEVERE] 	at net.minecraft.server.MinecraftServer.a(
    2011-06-03 08:43:05 [SEVERE] 	at net.minecraft.server.MinecraftServer.init(
    2011-06-03 08:43:05 [SEVERE] 	at
    2011-06-03 08:43:05 [SEVERE] 	at
    2011-06-03 08:43:05 [INFO] Done (0.464s)! For help, type "help" or "?"
    2011-06-03 08:43:06 [INFO] OrtwinS [/] logged in with entity id 188 at (555.875, 68.0, 34.625)
    2011-06-03 08:43:06 [INFO] CommandBook: No intro.mid; not playing intro song.
    2011-06-03 08:43:08 [INFO] §3[A] §fOrtwinS§f: test

    any idea?
  30. Offline


    Can you force the entity's position? or will this make it flicker up and down on the client?
Thread Status:
Not open for further replies.

Share This Page