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


    you plugin is great! the best shop plugin ive seen here!
    and i have a suggestion: could you make the autosave funktion only autosave when changes are made? so my server dont have to autosave every minute even when the server is empty.

    how do the players gain money on your server? ive been looking on a good solution for a while now and only found Heaven Activity which gives you money based on your activity, which is great, but are there other ways?
  3. Offline


    Or for this plugin need iConomy plugin ? :oops:
  4. Offline


    You don't need it, but then you can't use finite and infinite showcases.
  5. Offline


    some examples how my players get money (i use iconomy):
    1.) plugin mobbounty = money for killing monsters and animals
    2.) plugin jobs = configurate jobs ... player can join jobs ... a job gives money for break or place a jobspecific block or killing jobspecific animal, monster or player with rival jobs ... can get exp for doing a job ... higher joblevel -->more money and titles for players
    3.) plugin npcx = neutral npcs in town which are selling/buying specific items (configurated by admin), for example a farmer for seeds, bread and so on
    4.) admin-events ^^
  6. Offline


    When will the reload-dupe glitch be fixed? I reload my server and the showcase stays, but you can pick up a dupe
  7. Offline


    Everything is working in this latest version except my players are reporting the following error whenever someone buys from their shop: "error formatting % bought %d %s for a total of %s" . This sounds like something I can maybe fix from the formatting file? No console-side error is generated.
  8. Offline


    i like it! really nice plugin
    it is spamming save messages, but it isn't updated, so it isn't working, but when it was, it was a REALLY good plugin
  9. Offline


    What do you mean with "isn't updated"? Showcase works also with the latest Bukkit release.
    Which dupe-bug?
  10. Offline


    Its gone now. (950)
  11. Offline


    works with Build #953 danke <3
  12. Offline


    When will selling be enabled? I would like to have click to buy, right click to sell.
    Also, for now, what plugin do you suggest to use to sell? I do not want a anywhere plugin, it must be one that you have to use in a certain area
  13. Offline


    Hey narrowtux,

    I'd like to incorporate this plugin into a different plugin I'm working on. I'd like to be able to restrict specific players from buying certain kinds of items. Is there any way to cancel the purchase assistant without me having to change the code in your plugin? I can't seem to find a quick solution. Thanks!
  14. Offline


    I can setup some cancellable events so you can do that ;)

    Then the "basic" type is for you ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Sep 9, 2018
  15. Works flawless on CB 953!

    Was there a change to the chat holdback so it does no longer intercept groupchats or private messages? If not then its still a nuisance! =)

    Keep up the good work!
  16. Offline


    got a wierd error with showcase, when i right click the slab i teleport onto it (as does an arrow) and if i try to /spawn away it pulls me back ...i have to right click the blcock to unsell myself lol

    RB 953
  17. Offline


    Woot! Thanks :)
  18. Offline


    Then you
    Then you've got the ChairCraft mod installed which allows you to sit down on slabs and stairs. You have to disable or reconfigure this in order to use Showcase.

    Actually, the mod that causes this is called ChairCraft.
    You can disable that you can sit down on slabs in this mod, I think ;)
  19. Offline


    Is it posibel that i can use showcase only to show the item not to sell? i dont what that the players can take the item. they should only see what i have in store.
  20. Offline


    how do i get the "basic" type?
  21. Offline


    Rightclick on a slab while sneaking, then just type basic into chat, hit enter, and you've got your Showcase with the item you're holding in your hand!
  22. Offline


    thx your great
  23. Offline


    ah....yes we added that today
  24. Offline


    I don't really know how much I am asking here, but I am just wondering... I have the plugin ChairCraft and it makes half slabs with signs on them (configurable) into chairs, and I was just wondering if you could make a configuration where a half slab with a sign doesn't prompt the Showcase plugin. :) Please message back. :D

    Edit: Oh hehe, someone already posted something about this. :p Get back to me anyways, hehe.
  25. Offline


    Is exchange working?
    Every item id or name I try to enter as the exchange brings up "Item not found."
    So I put the item I want to receive in hand and type ok and get this: "Can't find key for translation!"
    Typing ok again allows you to set an amount you want to exchange and puts your item on the half block. What is it exchanging for though since no items were found to be able to exchange?

    Edit: More testing allowed me to specify what item I wanted in exchange although it gave me errors.

    MORE Edit: Items lost in nirvana when removing exchange showcase.
  26. Offline


    This isn't working for me - I can create a basic showcase in basic mode, but not in normal mode. If I have nothing in hand, sneak and right click it says 'you have got to hold something in your hand'. When I do have something in hand, nothing happens. I'm using the latest recommended build of bukkit and have the essentials package and lockette installed. Any Ideas? :(
  27. Offline


    Are there any errors in the console?
    @Kalais : The error is because there is a bug in the translation-get-method. I will fix that soon. I also know that item-ids don't work (whatever the cause is), but you should be able to enter the name, like gold_ingot (notice the underscore). I will fix the issues soon.
  28. Offline


    just found an error in the console regarding the groups file - going to check that out now.

    the console now says 'could not pass event 'PLAYER_INTERACT' to Showcase when i try to buy... but i can at least make them now

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


    Can you just post the error here? That would help very much :)
  30. Offline


    Some ideas for your showcase plugin:
    Sell to showcases
    So players could sell to a showcase, of course it should be configurable, kinda put in 0 dollars = you can't sell to that showcase, >1 = you can sell to the showcase. Maybe a protection too, if there is a buy and a sell price, the buy price cant be higher than the sell price. Of course this way there could be "buy only" showcases too.

    Doublestep showcases
    Doublesteps could be used to create showcases too?

    Id love to see the glass showcases again, it musn't align with 4 blocks.
  31. Offline


    I've uploaded a screenshot of the error, if that helps any? :)

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page