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


    Yup, that is all it would take. If the items fell out of the showcase on the floor, it might even be that much better but, if it would be a lot easier to just have the showcases wiped, I would prefer it worked, than waiting for something fancy :D
  3. Offline


    can you
    please send me a clear & easy tutorial of how to install this plugin? btw this looks great!:D
  4. Offline


    @phos4rus just download the .jar, drop it into the plugins/ folder of your server. Just like you'd install every other ordinary plugin ;)
  5. Offline


    I'm having some problems. I have a bunch of finite and infinite shops, and for some reason, the shops keep on dropping actual items that users can pick up. I keep having to throw them away, but it's getting awfully old. Any thought on this?
  6. Offline


    It still doesnt work even after I updated NarrowTuxLib. I get the same error. help?
  7. Offline


    ill try. thx! im creating a server and your plugin would be great for the server, ps let me know if ur intrested in the server?

    it dosn't work any sugestions?

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


    Please add a feature that let's players sell item back to the shop. Otherwise this is a great plugin
  9. Offline


    @narrowtux Any chance of getting an update to allow selling of enchanted items?
  10. Offline


    Alright, if it didn't already you need to download the latest version of narrowtuxlib

    Then you need to configure with a permissions plugins (the nodes are the first post)
  11. Offline


    im sorry if this question/request may seem stupid, but could exp be used as currency for this plugin? and if not, is it possible if you could add this in the future?
  12. Using your latest version for 1.0:

    - Permissions seem to be fail, I have only given the .basic node to a certain group, yet everyone can place them, defaults possibly set to true instead of false?
    - basicusesitem=true, is not working, it's not using an item at all.

    Latest CB
  13. Offline


    thx guys the help ill try it l8r im im going on a holiday. [cake]
  14. Offline


    Hey If I just wanna to show my itens without any buy options what sould I do? and is there a way to integrate this plugin with DropClear? It clears all the items in the world... your plugin restore it sometimes but only few, after some clears the items wont show anymore! Thanks!
  15. Offline


    Is there a way to enable support for mod items?

    For instance, when I try and sell Buildcraft or Industrialcraft items the shop will instead sell a random other item and not the item that was placed in the showcase.

    Anyone help please?
  16. Offline


    Hello, I Have tried out this plugin, but it doesnt seem to work, everything's up to date.
    I sneak and right click and the assistant comes up, then i type in the kind of shop i want, then it comes out on the chat and wont do anything, PLEASE HELP
  17. Hey,
    I read somewhere that you are working on a Showcase 2! I have a request add no-lagg support :rolleyes:
  18. Offline


    My showcase is having lots of issues:
    showcase: v0.7.7
    i have the latest bukkit.
    the error is when u try to punch the slab to buy a item. the shop helper doesnt pop up. then after like 10 min the server crashes completely. thats really all the information i have on the error. i cant find anything in the server log that could be of any help. any suggestion?
  19. Offline


    so what do i do to download the plugin? step by step is prefered! [diamond]
  20. Offline


    Can you update this so it also supports iConomy 6?
  21. Offline


    The latest build DOES support iConomy 6. He just needs to update the OP.
  22. Offline


    Everything works for me, except the showcases gets wiped now and then, this started happening after I updated Bukkit to a newer version (Around build 1565), and since I'm running with the newest recommended, there's nothing really I can do about it.

    Any ETA on Showcase 2?
  23. Could there possibly be an option to use pressure plates instead? Slabs are too chunky for counters and tables. Maybe an option in the config that allows us to choose the block we can use?
  24. Offline


    Getting this error with latest version of showcase:

    20:37:12 [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib
            at org.bukkit.craftbukkit.inventory.CraftItemStack.getEnchantments(
            at org.bukkit.inventory.ItemStack.clone(
            at com.narrowtux.showcase.ShowcasePlayer.remove(
            at com.narrowtux.showcase.types.FiniteShowcase.createShowcase(
            at com.narrowtux.showcase.ShowcaseCreationAssistant.onAssistantFinish(
            at com.narrowtux.narrowtuxlib.assistant.Assistant.stop(
            at com.narrowtux.narrowtuxlib.assistant.Assistant.onPlayerChat(
            at com.narrowtux.narrowtuxlib.event.NTLPlayerListener.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:108)
            at net.minecraft.server.MinecraftServer.w(
  25. Offline


    Plugin breaks for some reason in the 'Select showcase type'. It doesn't pause the chat and wait for input, meaning if you type for example 'basic', it just says basic in chat.
  26. Offline


    noticed a few issues with the recent build and 1.0

    we are seeing everything typed to choose, like the shop type and the prices, when shops are being made or purchased from. never saw that before.

    also, ive been getting this occasionally. it took me a while to realize it was a showcase that was having the issue. i kept thinking it was a mob :p
    2011-12-15 07:27:02 [WARNING] Wrong location for net.minecraft.server.EntityItem@2ba in world 'Main'!
    2011-12-15 07:27:02 [WARNING] Entity is at 232.5,47.5 (chunk 14,2) but was stored in chunk 14,3

    And it happens often.
  27. Offline


    Hi, when you make sell/buy blocks.

    e.g. I sell 10 diamonds to the block, it pays $100 each for them. Then the block has 10 diamonds in stock and I can buy them back for $120 each.

    But I would like the price to sort of be dictated by how many are in stock if the block has 500 the price would be worth much less compared to if it had 10. But also if it has so many the price is lower to buy them. Basically, make it dynamic like how it works in real life

    If you can't or wont do it, does anyone know a plugin that will do something like this?
  28. Offline


    I woke up to an "unknown" status on my server, meaning it needed a restart. Im sure its because of this because i battled it all day yesterday; random Entity issues all day.
  29. Offline


    It wont work for me :(
  30. Offline


    Hi narrowtux,

    My Bukkit Server is running mods like IC², BC and RP2, could it be possible you add support for these mods to your Plugin? because when i want to create a shop with one of these new items it creates something else in the shop :confused: i think it cant catch the right IDs for the items.

    e.g.: want to make a shot with copper ore ID 249, it creates a shop with Copper bar ID 30248

    greets Odai
  31. Offline


    Not working with latest RB :(
Thread Status:
Not open for further replies.

Share This Page