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


    Nope ^^
    still this error
  3. Offline


    Ok i test it again.

    Hoffen wir das beste xD
  4. Offline


    Then I will use your plugin again I think, currently it's wasting to much resources on huge servers.
  5. Offline


    Stop server, redownload, start server. Sometimes weird errors happen when updating.
  6. Offline


    I don't know if i am too tired or not, but I did that and it still gives me Invalid answer =x

    Advanced bans
    Bukkit Piston
    Minecraft Mania
    Natural Giants

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Oct 10, 2018
  7. Offline


    yh... sry dude for spamming u ^^
    its working now..
  8. Offline


    Will you add auctions feature to this plugin?
  9. Offline


    One thing that comes in mind when creating showcases:
    • Can you add something like reload or so, for editing the .csv?
    • Can you add a feature for filling empty showcases again? That would be helpful when selling showcases to players. It would be like a huge amought for "buying" the shop and after this one time fee, you can fill the case again and again. or like increase the amought in existing showcases, because now, you have to delete the showcase and create a new one with the new amought. (and because of that, values over 3024 are not possible.
    This plugin is so epic :D
  10. Offline


    I do not find the showcase.cfg but, in the folder "ShowCase", there's just a "showcases.csv"... =/
  11. Offline


    It should be generated... If not, you have to create it yourself. make a new file called showcase.cfg there and fill it with this:
    I think, but first, I have to make performance tweaks and consider how to implement finite showcase refill.

    I always reload via the built-in bukkit command "/reload". This will reload all your plugins, but it works good.
    And for refilling the showcase:
    Maybe click one time on the showcase and then drop the items you want to refill. After that, simply go away to finish. Wouldn't it be nice?

    Try to deactivate bColoredChat, I guess this is the cause of it.

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

    Jan Tojnar

    I dont know if it was reported because i am tired and want to sleep but if you place showcase on sand (or gravel) and you break block bellow that sand (or gravel) it will fall down and item too. Plus when you take fallen item it will reapper and fall again and you can take it again (tested with basicmode=true).
  13. Offline


    I Can u please fix the bColoredchat problem
  14. Offline


    What do you mean?
    Okay, so I'm considering sand and gravel as insecure types now...
  15. Offline


    yeeeeeeeeeees at last it is working i love this plugin thank you sooooooooooo much
  16. Offline


    Thanks for all fix !!! you're very productive !
    Don't work with blockonglass but if i understand, the problem is with blockonglass ?
  17. Offline


    Not working for me, using 766 and a lot of other plugins, help!
  18. Offline


    Works great man. Now I have a way to sell wool. Love it!
  19. Offline


    You should be able to change the currency to an actual physical item like Slime balls when buying stuff from the showcase shops. For example, In the plugin called TradeCraft, there are chest shops. But you can change the type of currency to any type of actual item. On my server, we use Slime balls as our currency, and I like using physical items as a currency instead of coins or something from EssentialsEco.
  20. Offline


  21. Offline


    Yup, Narrow that was the problem thank you, great plugin too. Do you know if any other chat coloring program will work with your plugin or if you can get bcoloredchat compatible?
  22. Offline


    Is anyone else having problems with this duping item? So far the bow DiamondSword DiamondPickaxe and all food items seem to get in my inventory when i walk near these showcases. I cant open this up to my users b/c of this. Am I the only one this is duping items for?

    edit* just tested on diamond armor and it seems to dupe all of it :/
  23. Offline


    For me, it works like expected. Even when refresh/reload, and the item "falls out of the glass block" there is no pickup.
    I have tried this together with about 6 Users of my server and there was no duping on grass stone and obsidian.
    Perhaps it could be with your server, that the server did not cancel the pickupevent fast enough, but i dunno.

    For the refresh-thing:
    The problem is, when typing in /reload, the .csv will be saved before unloading, so i cannot edit the file in a text-editor and change the owner of a showcase etc. (I can get around this when stopping the whole server then editing and then starting again.
    What would be nice, is: one /sc (showcase) save and one /sc reload.
    Than you could save the data, edit it and then reload it. This would be clean and less resource/error-expensive.

    Dropping items would be nice!
    But it could be a bit buggy for laggier servers, well you could do it like: punching and then type +amount /-amount. So you can add/remove any amount you want. That would be nice! :)

    A thing that comes in mind when placing showcases at the spawnpoint as an "initial shop". The most people are asking, if they can get the stuff in the showcase. Or they try to break it and just got this message like "you cannot do that". For the first thing, i think, you cannot do much, but please let us change this breaking-message, like "You cannot break this Showcase, hit it, and you can buy things from it." something like this.

    A very very Thanks from me!
  24. Offline


    0.5 doesn't work for me, if I try adding a showcase it keeps telling me "You can't afford this showcase"

    #Edit: It works when I set Basicmode to true in the config, but I want all Features :( :p

    #Edit2: If you implement the light feature, is it possible that you change ot, so I am able to place showcases on Fences to make some cool looking lamps? ^^
  25. Offline


    Neat idea but I dont like the idea of hundreds of drops animating in my server because of everyone's showcases, or is the animation shut off when they are placed in glass?
  26. Offline


    The animation is being rendered on the client. The server just calculates the position at spawn time.
    Have you got the money it is displaying at the selection screen?

    Btw, you can't build a showcase on a fence, because the item would fall down.
    What plugins do you have got installed?
    Have to look up the source and maybe ask the author if he can fix it.
    Okay, so I will implement both (you can either drop the items, or type the amount with a + before it).

    What you said with the refresh-thing is right, I totally forgot about this.
    I'll add a command for this and also for a workaround of all these bad programed chat-altering plugins

    You will be able to change the messages when I implement localization.
    Kostronor likes this.
  27. Offline


    i cant build a shop.
    i sneak, rightclick on glass
    he ask which type i want to. i type: finite
    he ask for the price. i type: 2
    but nothing happens
  28. Offline


    What plugins do you have got installed?
  29. Offline


    Oh ok, thank you. I'll try it out, I'm sure my shop crazy users will like it lol. Magnetblock is great btw! :)
  30. Offline


    a few:
    choclatefever,commandbook, cookbook, gastronomic, guestprev, HeroChat, LWC, LogBlock, MagicCarpet, MagicSpell, MyHome, Permissions, Sheepfeed, Showcase, Worldedit, Worldguard, iConomy, mcmmo
  31. Offline


    Wait until I deploy a workaround with a command.
    Will look like this:
    /sc [type-chooses-here]
    So you can simply work this bug around...
Thread Status:
Not open for further replies.

Share This Page