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


    @narrowtux Basic Mode is no longer working properly, now when I try to add a showcase it brings up the menu asking which kind of showcase I want to make and there's really only one choice to make. I'm using 0.6.1.

    Edit: Also it looks like for some reason the showcased item is vanishing shortly after it's repositioned on top of the slab. Just, poof, gone, I've tried placing slabs all over the place. This is with CB 830.

    I don't know what's causing it, I'll probably troubleshoot it and bring up my test server when basic mode gets fixed.
  3. Offline


    where is sneaking ?

    How start in the game ?
  4. Offline


    I got ShowCase working just fine with 818, but after installing ItemCraft (with Mo's Creatures, Slopes, and More Trees), all the ShowCases that I had previously disappeared. Now I cannot access the existing ShowCases, nor can I create new ones. Does anyone else have the same problem? I can back out of the ItemCraft mods, but am posting here hoping that someone else already has a solution for these mods to play nicely together, as both are excellent plugins.

    -- Thanks
  5. Offline


    sneak is when you hold shift (by default). It makes you smaller.
  6. Offline


    Sneak is the left shift key.

    - Hold the item you want to showcase
    - Press and hold left shift and right click on a half block (forgot the item number)
    - The plugin's assistant will ask you some questions. Just answer those and your item will be showcased.
  7. Offline


    Thx man
  8. Offline


    How about holding mobs in place, if it's possible to prevent animation too that'd be cool.

    You could add a whole new purpose to the mod, or make a similar one that does this. I.E. You can place an egg on the block, it will hatch a chicken that's attached to the block much like it's sitting. And every so often it will drop its eggs as usual. Chicken coops and livestock farming would become possible. Not sure how you would go about gathering the sheep, cows, and pigs, but maybe at first this would only serve to sell wolves and make chicken coops.
  9. Offline


    Nice idea :D
  10. Offline


    @narrowtux Any acknowledgement on basic mode not working properly? :(

    Also, would it be possible to upload 0.5.13? I wish to downgrade.
  11. Offline


    I'm sorry that it doesn't work, I simply forgot to do this when I reimplemented some huge parts of the code.
    That is still no reason to downgrade, because it will come back ;)
  12. Offline


    I don't say it's not easy... I just would like 3 features by priority order:
    1) option to totally disabling the infinite showcase (without using permissions and for everybody)
    2) option to let players buy items with items (gold ingots by default for example)
    3) default price list in the config file with option to constrain players with it (so the system would not ask for a price).

    Hope, you can add this to the todo list. I like your work but I think those additions would be a nice to have. :)
  13. Offline


    1) is already implemented for 0.6.2
    2) you can do this with the exchange-showcases
  14. Offline


    I love you. :p

    What for the 3) (I've edited the post but not submit before your post -_-) :
    3) default price list in the config file with option to constrain players with it (so the system would not ask for a price).
  15. Offline


    3) Is quite a nice one, will add this to an extra config file *off-coding*
  16. Offline


    it was nothing to do with him making it a halfstep - take the time to read the OP and the other comments please.
  17. Offline


    I simply ignore those ones who can't read :D
  18. Offline


    I don't like giving up trying to rid the world of idiocy ... its a losing battle. haha

    Hope you are going well.
  19. Offline


    Release v0.6.2
    • Fixed basicmode
    • You can now disable specific types by adding them to disabled in the config file (multiple ones seperated by a , )
    • Fixed a bug that caused showcases being inaccessible.
    The version where you can predefine item prices may come later this day.

    should be up in a minute, having problems with the github upload

    It's up now!

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


    narrowtux, great job on this plugin. My players and I are enjoying this quite a bit, and we've fully migrated off of LocalShops to this. Showcases are a much more elegant method of handling shops - we're very supportive of plugins who take the initiative to function without requiring "complex" / commands (a lot of my users skew younger, and slash commands confuse them).

    That being said, I eagerly, EAGERLY await the addition of sell-showcases. Right now we're having to use the Trader functionality of Citizens as a stop-gap measure - but having a fully Showcase-based shop is currently impossible, at least for us. I'm sure this is just covering the basics, but my hope would be that players/admins could configure which items could be sold back to the sell-showcase, and for how much.

    If its an issue of lack of ideas on how to implement - have the admin flag a specific block ID in the Showcase config that will only be recognized as a sell-showcase when the user has the proper permission/is sneaking/etc. If I was more of a developer, I'd try and help you with that further.

    I don't know if there's many other admins currently using this that are in the same situation as us, but I just wanted to make you aware of how much we personally on our server are eagerly anticipating Sell-showcases.
  21. Offline


    Hey man i think this is the best plugin we ever used thx a lot man now my suggestions...
    At first please add a donate button to youre post i want to donate a little bit beacouse it brings a lot of fun and its my favorite plugin now my other questions my members request an function to get money for an speccally item so like you show the item you want an member can put sonme in and get paid i hope you understand my suggestions
    Best wishes and greetings
  22. Offline


    I'll add one, but btw I have a donation link in my signature ;)
    EDIT: Done !
    EDIT2: Sell-Showcases will come soon!
  23. Offline


    thx man i donated to you
    Du bist ja ein Deutscher ;D
  24. Offline


    Hehe, Ja, dankeschön :)
  25. Offline


    Why when I removed items from my showcase I didn't get them back?
  26. Offline


    You only get the items back when you remove a finite or an exchange showcase. (you won't give away the item when you create a basic or an infinite one)
  27. Offline


    It was a finite showcase, I had 150 glass on a showcase, removed it, got the message "Removed item from showcase" and they never got given back to me.

    EDIT: I get the items back if I do the refill assistant, do -150, THEN remove the showcase item, which would be 0 items. But I lose the items if I just remove the showcase with any idea of items in it, I only 'removed' the showcase, as I thought it would give me back my items, instead of doing two steps and removing items through the refill assistant then removing the showcase.
  28. Offline


    Release v0.6.3
    • Fixed that you don't get your items back when you remove a showcase
  29. Offline


    Thanks for the fix. :)
    Is there anything you can do with saving the file temporary or completely, while the server is running, and making sure that items don't disappear from the showcases if the server crashes, which is what happened to my server.
  30. Offline


    Hm i suggest also an idea to rent an showcase per 1 coin per day or so ^^
  31. Offline


    Yep, I'll do this that it saves to disk every 10 secs.
Thread Status:
Not open for further replies.

Share This Page