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


    Thank you very much!
    Just buy yourself some coffee from it ;)
  3. Offline


    Thank you :)

    What exactly doesn't work?

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

    Jan Tojnar

    And what happens if tnt is launched? And if it falls down is it also insecure block? I am leaving town in few minutes so i don't have time to test it.
  5. Offline


    It is protected against tnt/whatever (works for me) and you normally cannot place a showcase on insecure blocks.
    insecure blocks are blocks where there is a possibility to get the item without buying it.
    I dont know, if tnt is added as insecure block, but i think, the tnt-launching-event will be canceled
  6. Offline


    It's not secured agains tnt or something like that at the moment, but I will add auto-restore if someone manages to remove the blocks.
  7. Offline


    Updated to the latest version, set up a finite shop, it "threw" my objects at the glass but they came back.. and then the shop had the item as well. TL;DR I basically duped my items.. is there any way for the displayable object to simply "spawn" and not necessarily be thrown from you with the chance of it being picked up again before the shop is created?
  8. Offline


    Is fixed in the next version.
  9. Offline


    hi narrowtux,
    couple of my players told me they were able to dupe items by trying to place them into glass above a door, the item just comes out and you can keep doing it to dupe the item. also assuming you can do the same for any kind of half-block like steps or ladders. had to disable it for now. hope you can get the duping problems worked out cause I really like this plugin.
  10. Offline


    Release v0.5.2
    • Fixed duping issues finally
    • Performance tweaks
    • To refill a finite showcase, click on it, then drop items of this kind. After that, walk away.
    • Now displays proper names for wool colors, dye colors, saplings, log, leaves and half-steps.

    Dupe bug fixed just now.

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


    is that fix in 0.5.2?
  12. Offline


  13. Offline


    so I was suspecting Stackable so i just disabled it and now it doesn't happen so there seems to be some sort of conflict with this and stackable. Not sure if anythign can be done but stackable is a pretty big part of my server and my players would rather have that than showcase but I would really like both so if there is anything I can do to help you debug this just let me know.

    edit* both you and stackable had an update so I tried updating both but same results so its got to be something with the way stackable handles pickups
  14. Offline

    maria myren

    Anyone else having issues with the finite now actually DELETING the items after a while? I set up the shops, come back a while later, and everything is just gone. Not invisible, but actually gone, the stores are just glass cubes and no stores set anymore?
  15. Offline


    Can you make so i can sell items for other items? so i can like use gold ingots for monney =]
  16. Offline


    WARNING : Big issues, if you place a glass block on a door, and you place a for exemple, diamond, falls to infinity and you can have an infinite number of diamonds.

    (sry for my bad english i'm french)
  17. Offline


    Also with version 0.5.2? (Sorry, I didn't announce that in the first post)

    It's on the todo.

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


    Great! I'll say so if i come up with some idea's =P
  19. Offline


    oh no sry thanks ! :p
  20. Offline


    Hmm, so I have the corect permissions but everytime I answer the type of showcase it is, gives me this:
    "Invalid answer aborting"
    I typed this in:
    (infinite), (finite) or (basic)
    Returns error everytime.
  21. Offline


    Did you just type the words without any parenthesis?
  22. Offline


    The config file doesn't auto-generate. The "Showcase" folder appears, but it is empty.
  23. Offline


    Seconding Mike's issue, and also a request.
    Could you make the unsecured check toggable in the config? Or else set it only to check when store creation begins? Players on my server are complaining that they can't have a glass floor over lava.
  24. Offline


    Maybe he could make a blacklist of items which you can't put in showcases. That would make it possible to have a lava over glass roof.
  25. Offline


    Do the items come from the players inventory in a finite shop?
  26. Offline


  27. Offline


    Yes, exactly like I posted.
  28. Offline


    Do you have any chat altering programs?
  29. Offline


    I have a Problem, i set a Glassblock , (on red wool), sneak right click on in , write basic in the chat und it says : You can't afford this Showcase? The same with my own Showncase that i make. I can delet the items in it, but cant place new items.


    btw my old Problems are gone now

    edit :

    Ok next Problem, i can destroy the showcase with TNT. Can this happens with creeper too?
    And when i place the showcase again (on the same place) , i can remove an item from a empty glass Block?

    edit ^^: Ok creeper can destroy the Showcase too.
    You can copy the items after a relogin. Means, you destroy the Glass Block with TNT (or creeper) , the item is still there without the Glas. make a relogin, and you can pickup the item. now you have too items.

    Bukkit Version 766 Showcase 0.5.2 i think (download 1 hour ago)

    edit3 ^^:

    This is new in my Log, after the update of your plugin???

    2011-05-21 08:31:27 [INFO] Wrong location! [email protected]
    2011-05-21 08:31:27 [INFO] 271.5,144.5(16,9) vs 17,9
    2011-05-21 08:31:27 [SEVERE] java.lang.Exception: Stack trace
    2011-05-21 08:31:27 [SEVERE] at java.lang.Thread.dumpStack(Unknown Source)
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.Chunk.a(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.ChunkLoader.a(SourceFile:181)
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(SourceFile:42)
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.ChunkProviderServer.loadChunk(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.ChunkProviderServer.getChunkAt(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.PlayerInstance.<init>(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.PlayerManager.a(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.PlayerManager.addPlayer(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.ServerConfigurationManager.a(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.NetLoginHandler.b(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.NetLoginHandler.a(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.Packet1Login.a(SourceFile:43)
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.NetworkManager.a(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.NetLoginHandler.a(
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    2011-05-21 08:31:27 [SEVERE] at net.minecraft.server.MinecraftServer.h(
    2011-05-21 08:31:27 [SEVERE] at
    2011-05-21 08:31:27 [SEVERE] at
  30. Offline


    But the lava will eat the item immediately, and because of that it is filtered.

    Maybe on the second launch?
    Sorry I will fix that for the next time.

    Does not look like my plugin, but like a minecraft error (just net.minecraft.server classes in the stack-trace)

    Yes, the amount he enters will be removed from his inventory.

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


    No, but if that causes problems then the OP should look into that.
    Tried again today but with no success.
    Kept getting that stupid error.
Thread Status:
Not open for further replies.

Share This Page