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

    Stahlklang

    23:52:15 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-
    gf53e007-b740jnks (MC: 1.5_02)

    hm... to Old ?
     
  3. Offline

    Lightwave

    That sounds awesome, looking forward to it.
     
  4. Offline

    narrowtux

    Do there come some error messages in the console? If yes, then you've got to update.
     
  5. Offline

    Stahlklang

    i updated the bukkit server...
    the item eject from my inventar now work fine...
    but i have the same Problem like SulimirCular

    My Server Running :

    02:58:45 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-753-
    g34e310c-b803jnks (MC: 1.5_02)
     
  6. Offline

    revil

    Hey thank you for this awesome plugin, but I get only 0.5.9 from your Download link on GitHub and therefore it always tells me shop sold out on finite shop.
     
  7. Offline

    narrowtux

    Oh, seems I didn't really fix that...
     
  8. Offline

    JayFight

    okay just to let you know i love this and so do the people on my server it just makes it look cool

    but i have found a few issues but you may not be able to do anything about them like the fact that superpick and wand from worldedit can get rid of the glass, which kind of looks cool but it means no one can buy anything and the glass from magic carpet can be used even though it moves when the person using it moves, meaning item stays glass doesn't
     
  9. Offline

    narrowtux

    I can't just implement support for each plugin that does Block-type changes. They are just too many. People who have the right to use these tools should be reasonable ;)
     
  10. Offline

    JayFight

    yeah i just thought you might want to add a warning or something so that others can avoid accidentaly using a superpick when trying to buy from a shop or something lol
     
  11. Offline

    narrowtux

    When that happen, they can still build a new glass block there ;)

    Propably good news!
    I have tried this out and because of this bug, it should be easy to work around notch's bug fix.



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

    Snowy007

    Untill notch fixes it again. :p

    Anyway, i love your plugin, really nice.
    Only using them as display cases though becouse we already have other shop types where you can buy things with gold ingots. (not very usefull either becouse everyone just uses the /give command)
    I hope you can keep finding other ways of displaying the items every time Notch goes on a bug fixing rampage again. :D

    Thanks for all the work you are putting into this.
     
  13. Offline

    Ciel

    Hi im using ur current new version 0.5.10 with bukket build 803 ( in server console it say 0.0.0.753. And i have the following problem. Ur plugin works just fine to the point whenever i restart the server everything is reset and all the shops are gone like they never existed. All item's are gone aswell.
     
  14. Offline

    narrowtux

    Good news!
    I tested Showcase on the latest bukkit-build (which is very buggy at the moment), and the plugin and item-showcasing still works without I had to change anything in the code.
     
  15. Offline

    moonjokes

    works for the most part, but your items still go away after 5 mins for me. I am on version 5.5 still though so idk. updating later.
     
  16. Offline

    Stahlklang

    grml... i see it yesterday to... ^^
    yet i have the the 0.5.10 and now realy ALL works fine thx narrowtux for this Awesome Plugin
     
  17. Offline

    Bseagull

    i ust want to mention about your post earlier about the update that it actually DID cause structural damage. It was not working (the plugin) so we just ignored it becasue it was giving us at least 50 errors. when the server closed down for the night, it was all going fine. But when we turned it back on in the morning, MAJOR chunk movements occcured. But it looks like you fixed it. :)
     
  18. Offline

    powback

    GREAT! now i dont have to rebuild the whole freekin server :D
     
  19. Offline

    narrowtux

    I would have implemented an auto-converter which converted the showcases from glass to a half-step. So this would had required you zero additional setup ;)
     
  20. Offline

    powback

    Awesome! You're the best!
     
  21. Offline

    Zixt

    Great plugin but the items disappear for me after 5 minutes odd.
     
  22. Offline

    defthefirst

    Hi,
    Great plugin :), i've an issue about showcaseprotection=false, for me it doesn't work, i reloaed... changed with the server stopped.
    Nothing to do, i cant break a showcase.
     
  23. Offline

    narrowtux

    You still have got to remove a showcase by sneak-rightclicking on the showcase.
    If you've got showcase protection set to false, every player can remove every other player's showcases, so beware, please!
     
  24. Offline

    Hegik

    Every time i put in something it fells out... i can't do anything with blocks arround it
     
  25. Offline

    GmK

    @narrowtux

    Damn, it is finally really borked on 1.6.5 :( The showcase exists, but the items get ejected and hover above/besides.
     
  26. Offline

    Daniel Few

    @narrowtux
    Heya. Loving the plug-in. However i've got one issue. Sometimes when I reload the server or shut it down/re-start it, the items disappear inside the showcase. Do you know why this is?
    Thanks a lot,
    -DanJames
     
  27. Offline

    narrowtux

    Wait until the craftbukkit is released, maybe notch hasn't even changed the code so that items that get teleported into the block (which is the case in Showcase) won't be ejected...
     
  28. Offline

    GehennaGirl

    Notch put a fix in 1.6 to prevent items from sitting inside glass blocks.

    I am rather interested to see if NarrowTux can overcome this. From what I told it most likely can be, just no one is sure yet 100%. And NarrowTux seems up for coding challenge of adding the little extra code that will most likely allow the BEST SHOP SALES PLUGIN that has ever existted to continue.

    I hope.
     
  29. Offline

    narrowtux

    Did you read the above posts?
    With minecraft > 1.6.4, Showcase just works like before. Because no craftbukkit built is out for 1.6.5, I can't say that it will work but I'm pretty sure it will without any changes needed to the code.

    Do there come any error messages like "could not write file ..." in the console?

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

    GehennaGirl

    No, i was posting as the same time you were i believe. I just saw what GmK said and replied to it based on what i knew regarding fixes in for 1.6
     
  31. Offline

    narrowtux

    No offense :D
     
    GehennaGirl likes this.
Thread Status:
Not open for further replies.

Share This Page