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

    narrowtux

    [​IMG]
    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.
    Features
    • 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 ;)
    Videos
    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.


    Usage
    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.
    Permissions


    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 showcase.showcase.buy.finitePlayer
    Buy from an infinite shop showcase.showcase.buy.infinitePlayer
    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.
    Commands

    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.

    Configuration
    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.
    Translations

    Currently available translations:
    Changelog

    Version 0.8.1
    See the whole changelog

    Todo
    • 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 server.properties 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

    beatcomet

    Great release, making another plugin that will use it would be cool (a shop plugin)
     
  3. Offline

    narrowtux

    You mean that the items could be clicked and would be bought then? That would be a very cool idea!
     
    kahlilnc likes this.
  4. Offline

    4am

    This is pretty sweet! I never would have thought of this.
     
  5. Offline

    AOD_Batman

    I'm going to fork your source code I have some great ideas for this I'd like to share with you! ;)
     
    kahlilnc likes this.
  6. Offline

    kahlilnc

    I think I no what you gonna do with this.
     
  7. Offline

    narrowtux

    What do you want to do? :D
     
  8. Offline

    EnigmaticMiner

    One of the coolest plugins I've seen recently.

    EDIT: In a while :)
     
  9. Offline

    narrowtux

    Thanks :)
     
  10. Offline

    beatcomet

    That's right, do something like the advanturecraft mod
     
  11. Offline

    niccholaspage

    Can you please allow a config option so items in the glass cannot be picked up, but anyone can break it? I'll have WorldGuard handle that.
     
  12. Offline

    narrowtux

    Okay, so here is my plan for selling items from the showcases:
    There would be 2 sell-modes:
    1. Unlimited ressources and money goes to nirvana
    2. Limited resources from the player who created it and the money goes to the player.
    Of course, there will be a permissions support for this so a player can't create an unlimited shop for a cheap price.
    Also, both the unlimited and limited resources could be given away for free, to provide your players startup-kits or rewards for achieving a labyrinth or something like that.
    For setting up, I want a dialog-based system like that:
    First, right-click a glass block. The system asks what you want to do:
    1. Simple Showcase
    2. Unlimited shop
    3. limited shop
    Of course, the possibilities would be filtered if they haven't got sufficient permissions.
    If the user chooses Showcase, the Item in his hand will be put into the glass without that he looses it.
    If the user chooses Unlimited, he is being asked for the price-tag, after he entered that, the item he holds will go into the glass (he doesn't loose it also)
    If the user chooses Limited, the system asks for the price-tag and after that for the amount of items he want to deposit. Then, the amount of items he is holding will be put into the glass.

    Also, I will invert the thing with the sneaking, so you have to sneak to showcase an item and can build when you're not sneaking.

    What do you think about that?

    EDIT:
    Forgot to explain buying items:
    The user who wants to buy left-clicks on the glass and the price-tag is shown to him. When he accepts it, he clicks the glass as often as he wants items. That's what I call intuitive ;)
     
    onumchuxo likes this.
  13. Offline

    Tfs Halo

    This is great but don't add a shop feature since it will be bad for the people that already have shop plugins like me and others but i love this idea the way it is right now :D
     
  14. Offline

    spunkiie

    Man, this plugin r0x :D
     
  15. Offline

    narrowtux

    You don't have to use the shop - the basic functionality will remain the same as it is now.
     
  16. Offline

    moonjokes

    showcase on double slab doesn't work. Just letting you know. Awesome plugin! :)

    edit: also colored wool reverts to normal wool and all inks revert to ink sac
     
  17. Offline

    niccholaspage

    I made a plugin like this just now, except you just drop the item then place the glass, and anyone can destroy the glass block. Is it OK with you to release it? I don't want to make you mad or anything (I didn't take any source code either, check here: https://github.com/niccholaspage/ShowIt/)
     
  18. Offline

    narrowtux

    You can release it, because it was clearly your idea, too.
    Oh damn, I totally forgot about that - Fixing...

    Released v0.2(.1)
    • Reverted Sneak-handling. You now have to sneak to add a showcase
    • Permissions support. Read the first post, please
    • Now supports data-value of item (i.e. color of wool)
    EDIT: I forgot to change something for preserving data, is fixed now. The 2 guys that already downloaded 0.2.1, please redownload!

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

    onumchuxo

    yeah me and moonjokes were making a bazaar, i randomly thought "does smp shelves exist somehow yet" then came across this from your other post...ironic it would release today a few hours before i decided to check haha! everything works good so far besides the meta-stuff like wool and ink like he said (fixed as i was typing lol) , which your working on right now so basically i just came here to say ITS ABOUT TIME! somebody made a plugin like this, thank you sir! I also really like the idea of it not taking from your inventor, but instead making like a sudo-item in there...pretty excited about the browse-my-goods shop thats about to happen here :)
     
  20. Offline

    narrowtux

    I looked at your source, and just wanted to give you a tip: The Items despawn after 5 minutes, so you'd better add some mechanism to respawn the item then.
     
  21. Offline

    niccholaspage

    Oh, wow. It seemed to me that it always stayed there since I've left items laying and they've stayed at their location before, hmm.
     
  22. Offline

    moonjokes

    Thanks for the quick update. The double slabs still have the item go through them, but the item id stuff is good now! For the record glowstone looks great under these at night.

    edit: not a big deal but, all dyes are still saying "ink sac showcased" just to let you know. haha
    also the console spam is a bit annoying. checking showcase.basic blah blah blah. :p
     
  23. Offline

    narrowtux

    I originally resetted the position of the item every tick to prevent falling down items. It turned out that the items would randomly "jump" around when I did this, so I set the position twice (at spawn and another time after that), and they rest.
    When you have nothing under the glass the items would simply fall down (I will prevent Showcasing items when there's nothing to hold them under it soon).
    That with the double-slab is clearly a Minecraft-bug, I can't fix it myself :(
     
  24. Offline

    moonjokes

    Well the thing about it is when you drop an item on a double slab normally it doesn't go through. So....? idk.
     
    RedixSK likes this.
  25. Offline

    spunkiie

    Think I found a bug: Pumpkin/Cactus can't be showcased :(
     
  26. Offline

    moonjokes

    probably because of the size difference
     
  27. Offline

    narrowtux

    I can Showcase Pumpkin and Cactus without problems...

    I saw that too - and was confused :D

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

    spunkiie

    My console keeps spaming alot of:

    :Checking showcase.basicCraftPlayer{name=NanoH}

    Is this normal ?
     
  29. Offline

    XXLPaprika

    Is it possible to make the glass-block glow, when there is a torch or lightstone in it?

    Would be awesome :p

    btw: Very nice and awesome Plugin, just like your others ^^

    A [cake] for you (the cake is a lie)
     
  30. Offline

    AOD_Batman

    Drop an item and put double-slabs over top of them. You will notices the items become covered up instead of popping out like normal blocks. This is the same bug, but different scenario. It's a bug in Minecraft. ;)
     
Thread Status:
Not open for further replies.

Share This Page