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


    any idea why im getting these errors when loading, the chunk errors also show up randomly once started....

    removing showcase seems to fix it, but how do i fix this short of reseting all the showcases??

    25.02 23:34:42 [Server] INFO [BKCommonLib] Showcase detected: Showcased items will be ignored
    25.02 23:34:42 [Server] INFO [Showcase] version has been enabled.
    25.02 23:34:42 [Server] INFO [Showcase] Registered type [tutorial] (0 items loaded)
    25.02 23:34:42 [Server] INFO [Showcase] Registered type [exchange] (0 items loaded)
    25.02 23:34:42 [Server] INFO [Showcase] Registered type [infinite] (0 items loaded)
    25.02 23:34:42 [Server] INFO [Showcase] Registered type [finite] (0 items loaded)
    25.02 23:34:42 [Server] INFO [Showcase] Registered type [basic] (205 items loaded)
    25.02 23:34:42 [Server] WARNING Entity is at -430.5,815.5 (chunk -27,50) but was stored in chunk -27,51
    25.02 23:34:42 [Server] WARNING Wrong location for net.minecraft.server.EntityItem@177 in world 'world'!
    25.02 23:34:42 [Server] WARNING Entity is at -417.5,815.5 (chunk -27,50) but was stored in chunk -27,51
    25.02 23:34:42 [Server] WARNING Wrong location for net.minecraft.server.EntityItem@176 in world 'world'!
    25.02 23:34:42 [Server] WARNING Entity is at -426.5,815.5 (chunk -27,50) but was stored in chunk -27,51
    25.02 23:34:42 [Server] WARNING Wrong location for net.minecraft.server.EntityItem@175 in world 'world'!
    25.02 23:34:42 [Server] WARNING Entity is at -432.5,845.5 (chunk -28,52) but was stored in chunk -27,52
    25.02 23:34:42 [Server] WARNING Wrong location for net.minecraft.server.EntityItem@149 in world 'world'!
    25.02 23:34:42 [Server] WARNING Entity is at -5055.5,111.5 (chunk -316,6) but was stored in chunk -316,7
    25.02 23:34:42 [Server] WARNING Wrong location for net.minecraft.server.EntityItem@10a in world 'world'!
    25.02 23:34:42 [Server] WARNING Entity is at -5056.5,101.5 (chunk -317,6) but was stored in chunk -316,6
    25.02 23:34:42 [Server] WARNING Wrong location for net.minecraft.server.EntityItem@f1 in world 'world'!
    25.02 23:34:42 [Server] INFO [Showcase] Loading Showcase v0.8.0.28.
    25.02 23:34:42 [Server] INFO [NarrowtuxLib] Payment method found (iConomy version: 6)
    25.02 23:34:42 [Server] INFO [NarrowtuxLib] v1.2.0 by [narrowtux] enabled.
    25.02 23:34:42 [Server] INFO Version: 120
    25.02 23:34:42 [Server] INFO [NarrowtuxLib] Loading NarrowtuxLib v1.2.0.
  3. Offline


    So narrowtux is it possible to sell enchanted items from showcase?
  4. Offline


    Some people on my server have a problem with showcase. They want to set some slabs in the Shift-Mode and they became a message, that they have no permission to create a showcase-shop. They have permission to buy on a shop but can't create some. Can you advance that they became this message no longer? That annoy the player that they became this message. When they have no permission, they souldn't became that like worldedit-woodaxeoption. Who don't have permission, souldn't became some message, isn't it?
  5. Offline


    Hey, do i need another plugin to make this work? Because I got this...

    10:05:52 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEve
    nt to Showcase
    java.lang.NoSuchMethodError: com.narrowtux.narrowtuxlib.NarrowtuxLib.getMethod()
    at com.narrowtux.showcase.ShowcaseCreationAssistant.<init>(ShowcaseCreat
    at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(Showca
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(
    at net.minecraft.server.MinecraftServer.w(
  6. Offline


    Can't sell with this current version! Can you add the sell feature please! My players cant sell their items! If the player sell 125 cobbles, it will add +125 cobbles in the showcase to let players to buy it.
  7. Offline


    Default players cant buy from the showcases for me. How do i fix this? I use PermissionsBukkit
  8. Offline


    You need an economy system. Please read the OP.
    Dude, you don't have to PM me the same message -.-
    Hmm, ok I'll look what the author can do...
    For questions about your permissions system, please ask the author of your permissions system.
    Selling items was never a feature yet.
    Yes, that is true. You could adjust the translation file to remove the message.
  9. Offline


    Hey Narrowtux,

    Great mod! It's been really useful on my server.

    I have a query though. It may sound simple, but how on earth can I simply remove all my set showcases and start again - I'm starting a new world and the old showcases are floating in some ocean somewhere.

    I've tried deleting the showcases.csv and reloading... Deleting the whole Showcase folder and reloading, and even unloading the plugin deleting it, deleting the folder, reuploading the plugin, and then reloading everything, but still, Showcase keeps loading the old set of showcases.

    Is finding the source block, recreating it and shift clicking the only way to remove them all?

  10. Offline


    You have to shut down the server before you remove the file or it will save its current state :p
  11. Offline


    Hello, I want to know if the VersionR4 available for this Plugin ?

  12. Offline


    I've a new problem with the messages. The player have and permissions. But when they setting some slabs by an other slabs with Shift-Mode they became the message ''showcast creation assistent'' and the violett Interface. How can I change this? The building looks like this:
  13. Offline


    Actually, the GUI should never appear...
    Do you have the latest version?
  14. Offline


    I fixed my problem, Idk how but i did :D
  15. Offline


    Oh i see, i have iConomy 6 that's why. Will u support iConomy 6 in the future?
  16. Offline


    Can you implement a feature where I can set not only the price per item, but change how many items you buy at one time? For instance.
    I create a showcase for dirt.
    "Please enter Stack size"
    I enter 64. Then
    "Please enter price per stack"
    I enter 1.
    Now I can buy 64 dirt for 1 dollar.
  17. Offline


    The permissionsnodes wont work

    Ok i have iConomy 6, Showcase v.79, CraftBukkit1.1R4, and PermissionsBukkit. The permissions nodes arent working apperently because i cannot buy from shops if im not op and i did add It gives me the message when im not op This is <username>'s showcase. I can buy when im op though. What is the problem?

    same problem...

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


    This is a nice plugin. It would be even better if people could sell the item on the showcases, so you could make this a physical shop. I would love to have it so I could set a discount rate in a config file that would determine the selling value of the items automatically. 100% would mean selling item would get same cash as price for buying. 25% would be the person receiving 25% of the buying price when selling.

    Maybe they could left-click to buy and right-click to sell? The price for selling would then be displayed for them. This would be great.
  19. Offline


    Thats exactely I wanted to ask :D +1 for the selling feature
  20. My ppl wont even get message.. They just cant use it.
  21. Offline


    I've also used this plugin for quite some time. Using iConomy 6.0.8b and CraftBukkit 1.1-R4. Also using Group manager for my permissions and I have no problems with it. Showcase 0.8 is compatible with R4. I assume an R5 version will be released, or maybe narrowtux will just wait until 1.2 depending on how the compatibility goes.

    For those of you having permission problems, '' should be '', nodes are case sensitive.

    Thanks for this plugin. I love it the way it is! However, other people seem to think that having an option to sell an item back to a players store is a feature they want, I thought I would supply you with my input on this feature. if you ARE going to implement it at some point, you may take this idea into consideration.
    or both in 1: showcase.bands.bsfinite
    (buy and sell finite permission nodes)
    Allows a player to create the 'bsfinite' showcase as well as buy and sell from and to them.
    Allows creation of an infinite supply bsfinite showcase.
    Allows a player to buy from, and sell to a bsfinite showase.

    Shift + Right-Click slab with cobblestone to sell, and buy cobblestone.
    First you would be asked how many you would like to sell. Then how much you would like to sell them for.
    After that, you are asked for the maximum amount of supply in the store should be, and how much you will 'buy' cobblestone from other players.

    Say I set up the shop with 30 cobblestone and I was selling them for $1 each. I would set the shops maximum supply to 50 and set my buy price to $0.80. If someone sells me 1 cobblestone, the shop will now be selling 31 cobblestone, if the showcase hits the supply limit of 50, players can no longer sell cobblestone to this showcase. Should some of the cobblestone sell, and the supply goes below 50, players will be able to sell to this shop again.

    I don't entirely encourage or promote the idea of this plugin having the 'sell to a showcase' feature, I just hate it when people suggest a feature, or say 'I want this', 'I want that' and they NEVER supply examples of how it should be done. Or give suggestions as to how their idea / feature suggestion should be implemented.
  22. Offline


    Are you planning to make the players able to sell the type items to a infinite shop?
    Thanks for this plugin mate. Blessings
  23. Offline


    Hi! I have a bug to report: I've tryed dealing with it but I can't get over it and it seems as nobody else is having the same problem.
    • Version of Showcase:
    • Version of Bukkit: craftbukkit-1.1-R4
    • If possible, a step-by-step explanation of the bug: The items won't stay still on basic showcases (I don't use the other ones so I don't actually know if the problem is limited or not): they keep jumping as if they where constantly respawned. Plus, if they have a solid block on top of them they seem to "escape" from the slab. See picture below, where the bottles where placed on the slabs above of the villagers.

    • If possible, console errors: Lots of lines of the following:
    • When you think that this has got to do with another plugin, please list all your plugins:
      I don't think this is a plugin conflict problem.
  24. Offline


    Yes I've showcase
  25. Offline


  26. Offline


    can you also sell you stuff so your that it goes right to the server instead of another user has to buy it?
  27. i still havent got any kind of explanation what might cause that my players cannot use the shop even with permission nodes.
  28. Offline


    you seem to have an unsupported permissions plugin.
  29. yes but why is that? why dont this allow bPermissions ?! :D
  30. Offline


    Because I would have to support all the permissions plugins ... Bukkit made an official api for exactly that problem...
  31. Offline


    this plugin rocks but i have a couple of ideas 1: you should make it so the showcase can switch items when you right click and when you right click it buys it like it normaly does with the messages and junk 2:there should be shop like the glass showcase that every one say u should put in and a menu in the chat box it will tell you what items are being sold and you can choose wich item you want so dome a favor and take that in mind in your next update
Thread Status:
Not open for further replies.

Share This Page